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 » Scripters
Home Search
 

Re: BodyForce script Not working.

Previous Thread :: Next Thread 
zappod123 is not online. zappod123
Joined: 27 Nov 2010
Total Posts: 21
14 Jun 2017 06:07 PM
So I've recently started working on a space game for Roblox, but I seem to be running into an issue in changing the value of Y.

So what I've done is inserted a Body Force into a brick called "Rocket." I attempted to change the Y value when the game starts up but it does not modify or change anything when the script runs.

This is what I tried to do.
game.Workspace.rocket.BodyForce.Force.y = 450000

What am I doing wrong?
Report Abuse
SuperOmar54 is not online. SuperOmar54
Joined: 12 Aug 2012
Total Posts: 415
14 Jun 2017 06:10 PM
Try capitalizing 'y'?
Report Abuse
zappod123 is not online. zappod123
Joined: 27 Nov 2010
Total Posts: 21
14 Jun 2017 06:12 PM
Sadly, It didn't do anything. Despite how touchy LUA can be.
Report Abuse
SuperOmar54 is not online. SuperOmar54
Joined: 12 Aug 2012
Total Posts: 415
14 Jun 2017 06:15 PM
local bodyf = script.Parent.BodyForce

bodyf.Force = Vector3.new(bodyf.Force.X, 450000, bodyf.Force.Z)
Report Abuse
zappod123 is not online. zappod123
Joined: 27 Nov 2010
Total Posts: 21
14 Jun 2017 06:17 PM
It worked, I guess I didn't think of having the X and Z.

Then again I'm a new LUA scripter.
Report Abuse
TaaRt is online. TaaRt
Joined: 26 Apr 2009
Total Posts: 5039
14 Jun 2017 06:20 PM
Never capitalize Lua. It's not an abbreviation, it means moon!
Report Abuse
zappod123 is not online. zappod123
Joined: 27 Nov 2010
Total Posts: 21
14 Jun 2017 06:20 PM
Luna is Moon, Not Lua.
Report Abuse
TaaRt is online. TaaRt
Joined: 26 Apr 2009
Total Posts: 5039
14 Jun 2017 06:21 PM
Portuguese is a different language than Spanish, whether you like it or not
Report Abuse
zappod123 is not online. zappod123
Joined: 27 Nov 2010
Total Posts: 21
14 Jun 2017 06:25 PM
Who cares, your like a politically correct SJW. Next time don't bother posting.
Report Abuse
zappod123 is not online. zappod123
Joined: 27 Nov 2010
Total Posts: 21
14 Jun 2017 06:26 PM
END
Report Abuse
TaaRt is online. TaaRt
Joined: 26 Apr 2009
Total Posts: 5039
14 Jun 2017 06:27 PM
The Lua site humorously mentions it, I can't really help you get so immensely offended by humor. Nonetheless, I don't think I'm going to abide by that suggestion you ended with.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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