(07-09-2011, 08:14 AM)Nice Wrote:(07-09-2011, 06:23 AM)Nyht Wrote: I've made a script using the onChatted function, however, the output says:
Script6: '=' expected near 'onChatted'.
So I decided to (yet again) turn to this community. I'll convert it to ROBLOX and test it there, even though it will have different methods.
[lua]npc = create("NPC")
label = create("Label")
print("Loaded Cloning Script")
--[[ fuction onChatted(msg) ]]--
if msg == "/clone" then
print("Cloning " .. speaker.Name)
npc.Parent = game.World
npc.Name = speaker.Name
label.Parent = npc
label.Text = speaker.Name .. "'s Clone"
npc.Skin = speaker.Character.Skin
print(speaker.Name .. " was successfully cloned.")
else
print(speaker.Name .. "was insuccessfully cloned.")
end
end
linkPlayer.Chatted, onChatted)[/lua]
:crazy: Did you do all that?
It is quite simple for an intermediate coder.
I fixed the double of line 14.
All my mods are available here.