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
 

game unknown value? Its game.Workpace doh .-.

Previous Thread :: Next Thread 
xXLiLxJXx is not online. xXLiLxJXx
Joined: 15 Mar 2012
Total Posts: 687
14 Jul 2014 07:20 AM
game.Workspace:FindFirstChild("Torso",true).CFrame = CFrame.new(Vector3.new(script.Parent.TP.Position))

Output: Workspace.Functional.truefalse.Script:34: attempt to index global 'game' (a function value)
Report Abuse
WishNite is not online. WishNite
Joined: 11 Feb 2009
Total Posts: 15828
14 Jul 2014 07:22 AM
well, I see one error

CFrame.new(Vector3.new(script.Parent.TP.Position))


When you say Vector3.new(Brick.Position), you're basically saying Vector3.new(Vector3.new().
Report Abuse
xXLiLxJXx is not online. xXLiLxJXx
Joined: 15 Mar 2012
Total Posts: 687
14 Jul 2014 07:26 AM
Fixed it. FOr some apparent reason I needed to remove "game"
Report Abuse
xXLiLxJXx is not online. xXLiLxJXx
Joined: 15 Mar 2012
Total Posts: 687
14 Jul 2014 07:30 AM
Actually no. Now it failed in game. But works perfectly in studio D:
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
14 Jul 2014 07:38 AM
The two most common reasons for working in Studio but not in Online are probably the following.

1 - You are not using wait() or WaitForChild() where you should, because it actually takes time to load in online mode. Go figure.

2 - You are using a local script or server script where it should be the other way around.
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