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 » Scripters
Home Search
 

Re: Barrel explodes but doesn't do damage to players

Previous Thread :: Next Thread 
Purgmetical is not online. Purgmetical
Joined: 07 Oct 2011
Total Posts: 3145
07 Aug 2016 06:16 AM
while true do
if script.Parent.Health.Value <= 0 then
local explode = Instance.new("Explosion")
explode.Parent = workspace
explode.Position = script.Parent.VehicleSeat.Position
explode.BlastPressure = 9e5
game.Debris:AddItem(script.Parent,5)
script.Parent = nil
end
wait(0.1)
end
Report Abuse
Laedere is online. Laedere
Joined: 17 Jun 2013
Total Posts: 23601
07 Aug 2016 06:20 AM
you didn't script it to damage players


Report Abuse
Purgmetical is not online. Purgmetical
Joined: 07 Oct 2011
Total Posts: 3145
07 Aug 2016 06:22 AM
How do I put that in
Report Abuse
Seizurezxzz is not online. Seizurezxzz
Joined: 12 Feb 2013
Total Posts: 1297
07 Aug 2016 06:45 AM
Well you see, explosions have a neat event called "Hit" that happens whenever it touches a member of the workspace ;)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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