Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Changing character to dummy but unable to move?

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

✓ Accepted answer

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

1 comment

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

This discussion is preserved as it was. New answers, comments, and votes are closed.