So I have a main menu script that puts the player in the lighting whenever they respawn, and when they press the play button, the script moves them back into the workspace. The problem is that the player keeps dying whenever the script puts them into the workspace. Here's my script:
Player.Character.Parent = game.Workspace Player.Character:MakeJoints()
I'm not sure what I'm doing wrong
I don't think you can keep a player in lighting, I could be wrong.
I would try anchoring them when you move them to lighting. When you remove them from lighting, MakeJoints() and un-anchor them. --------- ^ Tried that ^ Didn't Work ^ --------- New Theory (Works just tested)
a = game.Workspace.reaper5 for i,v in pairs (a:GetChildren()) do if v:IsA("Part") then v.Transparency = 1 v.Anchored=true end end b = game.Workspace.BOB.Position a:MoveTo(b) c = game.Workspace.Spawn.Position wait(5) a:MoveTo(c) for i,v in pairs (a:GetChildren()) do if v:IsA("Part") then v.Transparency=0 v.Anchored=false a.HumanoidRootPart.Transparency=1 end end
of course you can set it up for events for the textbutton and when a player is added.