|
| 04 May 2012 05:14 PM |
My script shows no output...
My script:
local floater = script.Parent local button = floater.BodyVelocity while true do button.maxForce = Vector3.new(0,4000,0) -- Upward force button.velocity = Vector3.new(0,1,0) -- Positive Velocity wait(2.5) button.maxForce = Vector3.new(0,3645,0) -- Low force value to slow the fall of part against gravity button.velocity = Vector3.new(0,1,0) -- Positive Velocity wait(.75) end
-----------------------------
Tutorial's script:
local Floater = script.Parent -- Our Part local Magic = Floater.BodyVelocity -- BodyVelocity object
while true do -- Continuous
Magic.maxForce = Vector3.new(0, 4000, 0) -- Upwards Force Magic.velocity = Vector3.new(0, 1, 0) -- Positive Velocity wait(2.5) -- Wait 2.5 seconds Magic.maxForce = Vector3.new(0, 3645, 0) -- Low Force value to slow the fall of the Part against gravity Magic.velocity = Vector3.new(0, 1, 0) -- Positive Velocity wait(.75) -- Wait .75 seconds
end |
|
|
| Report Abuse |
|
|
|
| 04 May 2012 05:17 PM |
| You have an end; yet you removed 'while true do' which was the only thing that required an end. Get rid of that end and it will work. |
|
|
| Report Abuse |
|
|
|
| 04 May 2012 05:18 PM |
| while true do requires an end... |
|
|
| Report Abuse |
|
|
|
| 04 May 2012 05:20 PM |
Oh, nevermind... Just saw that you moved that line.
Both scripts will break, check the capitals in the names of the properties? |
|
|
| Report Abuse |
|
|
|
| 04 May 2012 05:21 PM |
| capitals in properties are right |
|
|
| Report Abuse |
|
|
|
| 04 May 2012 05:24 PM |
| Neither work in game. In play solo, I watched the properties of the BodyVelocity in game. They changed back and forth, but it never floated. |
|
|
| Report Abuse |
|
|
|
| 04 May 2012 05:35 PM |
| Then the problem is the weight is too large for the bodyvelocity to move it. Try changing the values |
|
|
| Report Abuse |
|
|
|
| 04 May 2012 05:37 PM |
| Thanks, I was looking through properties, to see if anything like that would be the problem. Should I just resize it... or what? |
|
|
| Report Abuse |
|
|
|
| 04 May 2012 05:38 PM |
| You could resize or increase the maxVelocity |
|
|
| Report Abuse |
|
|
|
| 04 May 2012 05:48 PM |
| Wow, I decreased the size to a 3x2, still doesn't work. |
|
|
| Report Abuse |
|
|