of     2   
chevron_rightchevron_rightchevron_right

hugebrat2224
#210310148Tuesday, February 21, 2017 7:51 PM GMT

Script: local spawns = workspace.Lobby.Spawns game.Players.PlayerAdded:connect(function(plr) for i,v in pairs(spawns:GetChildren()) do plr:MoveTo(CFrame.new(spawns[i].Position)) end end) It will not move the player to the spawn.
Wrathsong
#210310215Tuesday, February 21, 2017 7:52 PM GMT

game.Players.PlayerAdded:connect(function(plr) player.Character:connect(function(char) for i,v in pairs(spawns:GetChildren()) do char:MoveTo(CFrame.new(spawns[i].Position)) end end) end) Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow me on twitch: twitch.tv/austinrblx
Wrathsong
#210310250Tuesday, February 21, 2017 7:53 PM GMT

In other words, you can't use MoveTo on the player, but their Character. Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow me on twitch: twitch.tv/austinrblx
hugebrat2224
#210310357Tuesday, February 21, 2017 7:55 PM GMT

Doesn't work. Error: 13:54:41.510 - Workspace.PlayerJoin:4: attempt to index field 'Character' (a nil value)
IcedVapour
#210310402Tuesday, February 21, 2017 7:55 PM GMT

game.Players.PlayerAdded:connect(function(plr) player.CharacterAdded:connect(function(char) for i,v in pairs(spawns:GetChildren()) do char:MoveTo(CFrame.new(spawns[i].Position)) end end) end)
hugebrat2224
#210310471Tuesday, February 21, 2017 7:57 PM GMT

Same script he used.
IcedVapour
#210310522Tuesday, February 21, 2017 7:57 PM GMT

Are you blind? "player.CharacterAdded"
ryanzlion
#210310586Tuesday, February 21, 2017 7:58 PM GMT

It's different. He changed .Character to .CharacterAdded. This will run when the character added rather than it not running at all.
hugebrat2224
#210310642Tuesday, February 21, 2017 7:59 PM GMT

Either way it doesn't work.
Snowskateer
#210310658Tuesday, February 21, 2017 8:00 PM GMT

doesn't moveto need a vector3 too?
hugebrat2224
#210310693Tuesday, February 21, 2017 8:00 PM GMT

I tried Vector3
Wrathsong
#210310741Tuesday, February 21, 2017 8:01 PM GMT

"player.Character" to player.CharacterAdded, oops Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow me on twitch: twitch.tv/austinrblx
hugebrat2224
#210310788Tuesday, February 21, 2017 8:01 PM GMT

That doesn't work either.
Snowskateer
#210310823Tuesday, February 21, 2017 8:02 PM GMT

because moveto needs a vector3 argument.
Snowskateer
#210310964Tuesday, February 21, 2017 8:04 PM GMT

local lobby = workspace:WaitForChild('Lobby') local spawns = lobby.Spawns game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) for i,v in pairs(spawns:GetChildren()) do char:MoveTo(v.Position) end end) end)
hugebrat2224
#210311039Tuesday, February 21, 2017 8:05 PM GMT

Still doesn't work.
Snowskateer
#210311079Tuesday, February 21, 2017 8:06 PM GMT

then something else is your problem
hugebrat2224
#210311147Tuesday, February 21, 2017 8:07 PM GMT

That's ### only script in ## game right now.
Snowskateer
#210311185Tuesday, February 21, 2017 8:07 PM GMT

any output errors?
hugebrat2224
#210311201Tuesday, February 21, 2017 8:08 PM GMT

No.
Snowskateer
#210311453Tuesday, February 21, 2017 8:12 PM GMT

add prints after everything and tell me what it doesnt print
hugebrat2224
#210311699Tuesday, February 21, 2017 8:15 PM GMT

Everything Prints
Snowskateer
#210312370Tuesday, February 21, 2017 8:25 PM GMT

even the part in the for loop?
AxonMega
#210312526Tuesday, February 21, 2017 8:27 PM GMT

Take out the CFrame.new().
ryanzlion
#210312674Tuesday, February 21, 2017 8:29 PM GMT

Axon did you even read this whole post?

    of     2   
chevron_rightchevron_rightchevron_right