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: Newbie

Previous Thread :: Next Thread 
testdummy5000 is not online. testdummy5000
Joined: 04 Jun 2010
Total Posts: 818
20 May 2013 01:10 AM
I'm knew at scripting. I know how tho change the properties and use wait(). I also know how to print things and some basic functions like remove. Ive been wanting to make a car that you can script to when you go a certain speed it blows up. But I don't know how to and what that function is. Please help a newbie out! :)
Report Abuse
testdummy5000 is not online. testdummy5000
Joined: 04 Jun 2010
Total Posts: 818
20 May 2013 01:11 AM
new* sorry I had to correct myself....
Report Abuse
loleris is not online. loleris
Joined: 23 Feb 2009
Total Posts: 1610
20 May 2013 01:30 AM
Here you go:

-- put this script inside a car front part or something
max_velocity = 200
part = script.Parent
part.Hit:connect(function()
local v = part.Velocity
if (v.x + v.y + v.z) > max_velocity then
local explosion = Instance.new("Explosion", Workspace)
explosion.Position = part.Position
end
end)
Report Abuse
inatorman is not online. inatorman
Joined: 17 Jun 2011
Total Posts: 113
20 May 2013 04:25 AM
this script /\
could also make realistic damage car accidents.
Report Abuse
loleris is not online. loleris
Joined: 23 Feb 2009
Total Posts: 1610
20 May 2013 04:44 AM
UPDATE
The script I posted earlier had a bug. This one will work right

-- put this script inside a car front part or something
max_velocity = 200
part = script.Parent
part.Hit:connect(function()
local v = part.Velocity
if (math.abs(v.x) + math.abs(v.y) + math.abs(v.z)) > max_velocity then
local explosion = Instance.new("Explosion", Workspace)
explosion.Position = part.Position
end
end)
Report Abuse
testdummy5000 is not online. testdummy5000
Joined: 04 Jun 2010
Total Posts: 818
24 May 2013 10:09 PM
Thanks I get like 3/4 of this... :)
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