local stage = 1
local player = game.Players.LocalPlayer
player.CharacterAdded:connect(function(char)
char.Torso.CFrame = CFrame.new(game.Workspace["Spawn" .. stage].Position)
end)
Why, it doesn't spawn me at "Spawn1" in Workspace? Help, thanks
local stage = 1
local player = game.Players.LocalPlayer
player.CharacterAdded:connect(function(char)
char.Torso.CFrame = CFrame.new(game.Workspace["Spawn" .. stage].Position)
end)
Why, it doesn't spawn me at "Spawn1" in Workspace? Help, thanks
I'm no good at positioning whatsoever, but I still think I can help. Maybe you can try something like this?
local stage = 1
local player = game.Players.LocalPlayer
player.CharacterAdded:connect(function(char)
char.Torso.CFrame = CFrame.new(game.Workspace["Spawn" .. stage].CFrame.p) -- JI think instead of Position, which I believe returns Vector3, use CFrame.p to get the proper position in CFrame.
end)
although this is not right i am accepting it because you are all giving dumb answers
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
Are you using a Local Script? If so, where is the script located?
god damnit yes its in startergui
Have you added a
printto that event to make sure it's firing? It's possible this script ran after the character has spawned.yes i made a print