generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Simple logic..... Y U NO WORK?!?!?!?

Previous Thread :: Next Thread 
meSmashsta is not online. meSmashsta
Joined: 31 Jan 2013
Total Posts: 1002
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
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
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
meSmashsta is not online. meSmashsta
Joined: 31 Jan 2013
Total Posts: 1002
05 Nov 2013 12:29 PM
did not work.
Report Abuse
juzzbyXfalcon is not online. juzzbyXfalcon
Joined: 02 Feb 2011
Total Posts: 1311
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
meSmashsta is not online. meSmashsta
Joined: 31 Jan 2013
Total Posts: 1002
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
rosie92680 is not online. rosie92680
Joined: 17 Oct 2011
Total Posts: 1511
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
meSmashsta is not online. meSmashsta
Joined: 31 Jan 2013
Total Posts: 1002
05 Nov 2013 01:09 PM
i dont need some kind of loop, this even only happen once.
Report Abuse
janthran is not online. 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 is not online. 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 is not online. 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
meSmashsta is not online. meSmashsta
Joined: 31 Jan 2013
Total Posts: 1002
05 Nov 2013 01:51 PM
help plz!!
Report Abuse
janthran is not online. 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
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
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
juzzbyXfalcon is not online. juzzbyXfalcon
Joined: 02 Feb 2011
Total Posts: 1311
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
meSmashsta is not online. meSmashsta
Joined: 31 Jan 2013
Total Posts: 1002
05 Nov 2013 02:29 PM
@juzz
no worry, scriptural solved the mystery.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image