(06-28-2011, 01:01 PM)Qwertygiy Wrote: Instead of
[lua]
n.Name = math.Random(1,10000)
n.Body:remove()
speaker.Body:clone().Parent = n
[/lua]
Try
[lua]
n.Name = tostring(math.random(1,10000))
n.Skin = speaker.Character.Skin
[/lua]
if speaker is a Player.
Thanks, but the sixth line in was incorrect. I put .Workspace, not .World. Still fails to work, and I have done tweaks here and there:
[lua]t = create("TextValue")
n = create("NPC")
l = create("Label")
if msg == "clone;" then
n.Parent = game.World
t.Parent = game.Storage
t.Name = speaker.Name
l.Parent = n
l.Text = speaker.Name .. "'s Clone"
n.Name = tostring(math.random(1,10000))
n.Skin = speaker.Character.Skin
n:clone().Parent = t
print("You have successfully cloned yourself.")
end
[/lua]
All my mods are available here.