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: Why dosen't this script work?

Previous Thread :: Next Thread 
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
17 Aug 2013 09:16 AM
game.Players.PlayerAdded:connect(function(plr)
repeat wait() until plr.Character
plr.Character.Torso.CFrame =CFrame.new(-229.4, 97.4, 224.4)
end)

Report Abuse
blocksbuild is not online. blocksbuild
Joined: 04 Sep 2012
Total Posts: 65
17 Aug 2013 09:17 AM
dunno
Report Abuse
blocksbuild is not online. blocksbuild
Joined: 04 Sep 2012
Total Posts: 65
17 Aug 2013 09:18 AM
its not cframe.new....... its vector3.
Report Abuse
TheDoctor4816 is not online. TheDoctor4816
Joined: 08 Feb 2009
Total Posts: 396
17 Aug 2013 09:21 AM
game.Players.PlayerAdded:connect(function(plr)
repeat wait() until plr.Character
plr.Character.Torso.Position = Vector3.new(-229.4, 97.4, 224.4)
end
end)
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
17 Aug 2013 09:22 AM
@blocksbuild, NO! It's CFrame i'm using NOT position or size!
Report Abuse
TheDoctor4816 is not online. TheDoctor4816
Joined: 08 Feb 2009
Total Posts: 396
17 Aug 2013 09:26 AM
Yes but CFrame doesn't use 3 Co-ordinates, it uses angles aswell, so 6, maybe even 9 co-ordinates. You have to use Vector3 if you are moving it in 3 Co-ordinates.
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
17 Aug 2013 09:29 AM
Do I put in local script or normal script?
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
17 Aug 2013 09:36 AM
And your script doesn't work in test mode!
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
17 Aug 2013 09:40 AM
'CFrame doesnt use 3 coordinates'

Face palm.
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
17 Aug 2013 09:41 AM
game.Players.PlayerAdded:connect(function(plr)
game.Players.CharacterAdded:connect(function(char)
char.Torso.CFrame =CFrame.new(-229.4, 97.4, 224.4)
end)
end)


-- Just try looking at player fired events next time :3.
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
17 Aug 2013 09:42 AM
@infocus, it doesn't. 3 for coordinates, 3 for angulation, and the rest are engine-related.
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
17 Aug 2013 09:42 AM
Well... I read that wrong, forget that.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
17 Aug 2013 09:42 AM
game.Players.PlayerAdded:connect(function(plr)
repeat wait() until plr.Character
plr.Character:MoveTo(Vector3.new(-229.4, 97.4, 224.4))
end)
Report Abuse
Xtreme101 is not online. Xtreme101
Joined: 03 Jan 2009
Total Posts: 4385
17 Aug 2013 09:43 AM
Let's just use :moveTo(), okay?
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
17 Aug 2013 09:43 AM
Use be'.

Dang, how could i forget the characteradded event -.-
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
17 Aug 2013 09:45 AM
IN a local script?
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
17 Aug 2013 09:47 AM
game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)
char:MoveTo(Vector3.new(-229.4, 97.4, 224.4))
end)
end)
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
17 Aug 2013 09:47 AM
Use mine in a normal script.
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
17 Aug 2013 09:49 AM
Regular sctipt
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