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
 

Can anyone find the problem in this.

Previous Thread :: Next Thread 
wwemaniac99 is not online. wwemaniac99
Joined: 10 Mar 2010
Total Posts: 41496
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
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
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
wwemaniac99 is not online. wwemaniac99
Joined: 10 Mar 2010
Total Posts: 41496
04 May 2012 05:18 PM
while true do requires an end...
Report Abuse
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
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
wwemaniac99 is not online. wwemaniac99
Joined: 10 Mar 2010
Total Posts: 41496
04 May 2012 05:21 PM
capitals in properties are right
Report Abuse
wwemaniac99 is not online. wwemaniac99
Joined: 10 Mar 2010
Total Posts: 41496
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
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
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
wwemaniac99 is not online. wwemaniac99
Joined: 10 Mar 2010
Total Posts: 41496
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
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
04 May 2012 05:38 PM
You could resize or increase the maxVelocity
Report Abuse
wwemaniac99 is not online. wwemaniac99
Joined: 10 Mar 2010
Total Posts: 41496
04 May 2012 05:48 PM
Wow, I decreased the size to a 3x2, still doesn't work.
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