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 |
|
|
| |
|
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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 27 Nov 2010 |
| Total Posts: 21 |
|
| |
|
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
|
  |
| 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
|
  |
| Joined: 27 Nov 2010 |
| Total Posts: 21 |
|
| |
|
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 |
|
|