Ok, so, I have this script:
game.Players.PlayerAdded:connect(function(player) repeat wait() until player.Character local random = math.random() local clone = player.Character:Clone() clone.Parent = game.ReplicatedStorage clone.Name = random.." player" player.Character:Destroy() repeat wait() until not player.PlayerGui.Intro.Develop local backClone = clone:Clone() backClone.Parent = game.Workspace backClone.Name = player end)
And I have this error:
Workspace.Script:9: attempt to index local 'clone' (a nil value)
Ok, so, what's happening? It says I didn't define the 'clone' variable on line 9, but I did, on line 7!