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: will this work?

Previous Thread :: Next Thread 
crazyzee is not online. crazyzee
Joined: 24 Aug 2010
Total Posts: 275
16 Jun 2012 06:54 PM
function o(new)
new.Torso.CFrame = CFrame.new(Vector3(-38.5, 63, -32.5))
end

game.Players.ChildAdded:connect(o)

i think i got the connection line wrong.
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
16 Jun 2012 06:58 PM
[ Content Deleted ]
Report Abuse
crazyzee is not online. crazyzee
Joined: 24 Aug 2010
Total Posts: 275
16 Jun 2012 06:58 PM
BUMP please help me i have to get off soon.
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
16 Jun 2012 06:58 PM
No. You got the player in "Players" not the character.

new.Character.CFrame = CFrame.new(-38.5, 63, -32.5)


~thedestroyer115, helping out since December 2011~
Report Abuse
crazyzee is not online. crazyzee
Joined: 24 Aug 2010
Total Posts: 275
16 Jun 2012 06:59 PM
it doesnt Work i have tried alot of times
Report Abuse
Flash77 is not online. Flash77
Joined: 14 Jun 2008
Total Posts: 550
16 Jun 2012 06:59 PM
no it wouldnt work.
1. The connect line would work, but it is beter to use:
game.Players.PlayerAdded:connect(o)

2. the CFrame line you would do new.Character.Torso.CFrame = CFrame.new()

3. need to add new.CharacterAdded:wait() before accesing stuff from the character since player spawns before character

4. CFrame value is wrong, need to have it be CFrame.new(0,0,0) no Vector3.new()
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
16 Jun 2012 07:00 PM
function o(new)
new.CharacterAdded:wait()
new.Character.Torso.CFrame = CFrame.new(-38.5, 63, -32.5)
end

game.Players.ChildAdded:connect(o)
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
16 Jun 2012 07:01 PM
@Flash

1. That's completely optional.
2. This is correct.
3. This is correct, but that is not the only way to do it. I did it because it's simpler, but there are plenty of other ways to do it.
4. This is optional, you can do Vector3 if you want.
Report Abuse
crazyzee is not online. crazyzee
Joined: 24 Aug 2010
Total Posts: 275
16 Jun 2012 07:03 PM
thank you guys so much.
Report Abuse
crazyzee is not online. crazyzee
Joined: 24 Aug 2010
Total Posts: 275
16 Jun 2012 07:05 PM
it still does not work it didnt teleport me to the spot where i wanted to be and i have tried the script on the 1 post on top of my post
Report Abuse
Flash77 is not online. Flash77
Joined: 14 Jun 2008
Total Posts: 550
16 Jun 2012 07:07 PM
i always just use PlayerAdded because it would get rid of any glitchs where something else might be accidently (or purposfuly) added to Players
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
16 Jun 2012 07:09 PM
game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(char)
repeat wait() until char:FindFirstChild("Torso")
char:MoveTo(Vector3.new(-38.5, 63, -32.5))
end)
end)

If it moves you, but it moves you to the wrong location, your coordinates are wrong.
Report Abuse
crazyzee is not online. crazyzee
Joined: 24 Aug 2010
Total Posts: 275
17 Jun 2012 12:33 PM
nope im sure its supposed to work i even checked the caordinates
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
17 Jun 2012 01:55 PM
I believe .PlayerAdded only works in online Mode, so it won't work if You're testing this in Build Mode.
Report Abuse
crazyzee is not online. crazyzee
Joined: 24 Aug 2010
Total Posts: 275
17 Jun 2012 07:55 PM
ok
Report Abuse
crazyzee is not online. crazyzee
Joined: 24 Aug 2010
Total Posts: 275
19 Jun 2012 09:30 AM
it still doesnt work
please help me
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
19 Jun 2012 10:15 AM
[ Content Deleted ]
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