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
 

Re: How to make a button that increases BodyVelocity?

Previous Thread :: Next Thread 
Srengsina is not online. Srengsina
Joined: 09 Nov 2013
Total Posts: 12201
11 Jun 2014 04:04 AM
I'm stupid at scripting, so, can you help me?

Hola!
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
11 Jun 2014 04:11 AM
wort
>Part
>>ClickDetector
>>Script
>>BodyVelocity Object

BodyVelocity = script.Parent.BodyVelocity
script.Parent.ClickDetector.Clicked:connect(function()
BodyVelocity.velocity = BodyVelocity.velocity + 10
end)
Report Abuse
Srengsina is not online. Srengsina
Joined: 09 Nov 2013
Total Posts: 12201
11 Jun 2014 04:20 AM
didn't work.

Hola!
Report Abuse
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
11 Jun 2014 05:03 AM
Correction on this line:

script.Parent.ClickDetector.Clicked:connect(function()

Should be:

script.Parent.ClickDetector.MouseClick:connect(function()
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