Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Changing character to dummy but unable to move?

Asked by 4 years ago

so. i have a game, when played you spawn in as a noob (the dummy). you can move around, but when you die and the dummy respawns, the script sets your character to the dummy, but unable to move now? (and the actual me does NOT respawn.) can anybody find a solution please? code for change character script: (script is in game.StarterPlayer.StarterPlayerScripts)


wait(5) char = script.Parent.Parent.Character script.Parent.Parent.Character = workspace.Dummy char:Destroy() print("doi") workspace.Dummy.Humanoid.Died:Connect(function()   script.Parent.Parent.Character = workspace.aaaaaaaaaaaaaaaa   wait(10)   print("jhonny") char = script.Parent.Parent.Character script.Parent.Parent.Character = workspace.Dummy char:Destroy() end)

1 answer

Log in to vote
0
Answered by
srimmbow 241 Moderation Voter
4 years ago
Edited 4 years ago

Have your starter character in workspace, name it "StarterCharacter" (has to be that name) and put it in StarterPlayer.

0
sorry, i am not working on this project anymore, but thanks! i will keep this in mind for later in other games. have fun with the stuff codingMASTER398 52 — 4y
Ad

Answer this question