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
 

need vehicle to do damage to a model

Previous Thread :: Next Thread 
69scott69 is not online. 69scott69
Joined: 30 Jan 2011
Total Posts: 6136
11 Dec 2011 09:55 PM
I have a huge noob model that I want to smash with a car (Its about 160 studs high with a whole lotta parts). I'm new to scripting so will this script in the bumpers work or am I out in left field?

game.Workspace.Vehicle:OnTouch("workspace.Noob")
function
x=Instance.new.hit:BreakJoints()
end
end
end

Thanks!

Report Abuse
mage11561 is not online. mage11561
Joined: 03 Sep 2008
Total Posts: 13217
11 Dec 2011 09:57 PM
function onTouched(part)
a = part.Parent:FindFirstChild("Noob")
if a ~= nil then
a:BreakJoints()
end
end
script.Parent.Touched:connect(onTouched)


That should work... i think.
Report Abuse
Riderj is not online. Riderj
Joined: 15 Aug 2011
Total Posts: 1534
11 Dec 2011 09:58 PM
Your not even in the same park lol.


function ot(hit)
if hit.Parent.Name == "Noob" and hit.Parent.ClassName == "Model" then
hit.Parent:BreakJoints()
end
end

script.Parent.Touched:connect(ot)


that should work, was just winging it so please correct me if I am wrong.
Report Abuse
mage11561 is not online. mage11561
Joined: 03 Sep 2008
Total Posts: 13217
11 Dec 2011 10:00 PM
yeah use riderj's script,
mine is a little messed up methinks.
Report Abuse
69scott69 is not online. 69scott69
Joined: 30 Jan 2011
Total Posts: 6136
11 Dec 2011 10:05 PM
@ both. Thanks for your help, I understand the basics of scripts that are written, but obviously fail miserably when trying to start from the beginning. lol
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