|
| 05 Nov 2013 12:27 PM |
logic: player enter instantly move him to a brick position
not working no output neither. being checked by test server (Alt f7)
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:wait() plr.Character:moveTo(Vector3.new(workspace.Part.Position)) end) |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2013 12:28 PM |
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:wait() plr.Character:moveTo(Workspace.Part.Position) end)
?
~Bacon is love, bacon is life! |
|
|
| Report Abuse |
|
|
| |
|
|
| 05 Nov 2013 12:32 PM |
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) char:MoveTo(Vector3.new(workspace.Part.Position)) end) end)
-Believe and you will achieve- |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2013 12:41 PM |
| it's same thing as i wrote, so this doesnt work neither with out me testing.. .same out put |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2013 12:46 PM |
| You don't need some kind of loop do you, or does the function automatically loop? If so then I don't know, sorry. |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2013 01:09 PM |
| i dont need some kind of loop, this even only happen once. |
|
|
| Report Abuse |
|
|
janthran
|
  |
| Joined: 15 May 2009 |
| Total Posts: 17429 |
|
|
| 05 Nov 2013 01:15 PM |
Are you testing in online at all? PlayerAdded doesn't work on solo |
|
|
| Report Abuse |
|
|
janthran
|
  |
| Joined: 15 May 2009 |
| Total Posts: 17429 |
|
|
| 05 Nov 2013 01:16 PM |
@me You didn't capitalize the M in MoveTo I don't know if that makes a difference but it might |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 05 Nov 2013 01:17 PM |
| He says he's using the Create Test Server option. PlayerAdded works there. |
|
|
| Report Abuse |
|
|
| |
|
janthran
|
  |
| Joined: 15 May 2009 |
| Total Posts: 17429 |
|
|
| 05 Nov 2013 01:55 PM |
game.Players.PlayerAdded:connect(function(plr) repeat wait() until plr.Character plr.Character:MoveTo(Vector3.new(Workspace.Part.Position)) end) |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2013 01:55 PM |
I had the some problem yesterday, its because when you spawn in a game that has no spawns, it teleports you to the middle of the game So after your script teleports them they get reteleported |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2013 02:02 PM |
Your script:
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:wait() -- This will error. wait() is a function, not a method. plr.Character:moveTo(Vector3.new(workspace.Part.Position)) -- MoveTo is with capital m end)
Your reaction to my fixes: it's same thing as i wrote, so this doesnt work neither with out me testing.. .same out put
You don't even deserve help.
-Believe and you will achieve- |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2013 02:29 PM |
@juzz no worry, scriptural solved the mystery. |
|
|
| Report Abuse |
|
|