Ok so i was making a rpg game and i wanted to copy my character for a cutscene but i couldnt Heres the code:
game.Players.PlayerAdded:Connect(function(plr)
local Char = game.Workspace:WaitForChild(plr.Name)
print(Char)
local Clone = game.Workspace:WaitForChild(plr.Name):Clone()
Clone.Parent = game.Workspace
end)
And heres the output:
ServerScriptService.Script:7: attempt to index nil with 'Parent' - Server - Script:7
Stack Begin - Studio
How is it nil???

1 comment
Dude ur smart thx