I made a tool that copies your character when you activate it, however I keep getting the error:
Players.Player1.Backpack.Mirage/Remnant.LocalScript:9: attempt to index local 'clone' (a nil value)
I have no idea what this means nor how it can be rectified. The script is here:
local name = game.Players.LocalPlayer.Name .. "RNT"
script.Parent.Activated:connect(function()
if not game.Workspace:FindFirstChild(name) then
local m = Instance.new("Model")
m.Name = name
m.Parent = game.Workspace
local clone = game.Players.LocalPlayer.Character:clone()
clone.Parent = m
clone.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*2
clone.Name = ""
clone.Humanoid.MaxHealth = 0
else
game.Workspace[name]:destroy()
end
end)
Can anyone help?

3 comments
I am pretty sure you can't clone the player, I tried it before
you're right, i just tested it
Well that sucks