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: Explosion Problem

Previous Thread :: Next Thread 
LilMcManiac is not online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
23 Dec 2014 07:09 PM
player = game.Players.LocalPlayer
mouse = player:GetMouse()
robot = player.Character:findFirstChild("Robot1")
Ammo = 9

mouse.KeyDown:connect(function(key)
robot = player.Character:findFirstChild("Robot1")
Key = key:lower()
if Key == "l" then
Ex = Instance.new("Explosion", robot.Bullet9)
wait(1)
Ex:Destroy()
robot.Bullet9.Transparency = 1
wait(6)
robot.Bullet9.Transparency = 1
Ammo = Ammo -1
wait(4)
Ammo = Ammo +1
if Ammo == 8 then
Ex = Instance.new("Explosion", robot.Bullet8)
wait(1)
Ex:Destroy()
robot.Bullet8.Transparency = 1
wait(6)
robot.Bullet8.Transparency = 1
Ammo = Ammo - 1
wait(4)
Ammo = Ammo + 1
end
end
end)

This is supposed to put a explosion in a bullet, but it puts it in the Workspace. On the baseplate.
Report Abuse
ChiefDelta is not online. ChiefDelta
Joined: 05 Nov 2010
Total Posts: 13071
23 Dec 2014 07:09 PM
you Gots to set the Parent property of the Explosion to the Bullet
Report Abuse
LilMcManiac is not online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
23 Dec 2014 07:14 PM
I do..

Line 9.
Report Abuse
LilMcManiac is not online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
23 Dec 2014 07:20 PM
Bump
Report Abuse
LilMcManiac is not online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
23 Dec 2014 07:33 PM
Bump...
Report Abuse
LilMcManiac is not online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
23 Dec 2014 08:27 PM
Come on guys help me!!! Changed the damage script


script.Parent.Weld:Remove()
v = Instance.new("BodyVelocity", script.Parent)
v.velocity = Vector3.new(0,0,10)
v.maxForce = Vector3.new(math.huge, math.huge, math.huge)

function Hit(Bullet)
if Bullet.Parent.ClassName == "Part" then
wait(1)
Ex = Instance.new("Explosion",script.Parent)
Ex.BlassPressure = 10000
Ex.BlastRadius = 3
Ex.Position = Vector3.new(script.Parent.Position)
wait(2)
script.Parent.Transparency = 1
wait(.1)
Ex:Remove()
v:Remove()
wait(2)
script.Parent.Transparency = 0
w1 = Instance.new("Weld", script.Parent)

w1.Part0 = script.Parent
w1.Part1 = script.Parent.Parent.Gun

w1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) *CFrame.new(-0.1,0,-0.3)
end
end
script.Parent.Touched:connect(Hit)
Report Abuse
LilMcManiac is not online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
23 Dec 2014 08:38 PM
Bump!! Guys please help.. Are any of you scripters? Be nice and help me please!
Report Abuse
LilMcManiac is not online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
23 Dec 2014 08:46 PM
Come on guys! I really need help!!!!
Report Abuse
SpiritOfTheParadox is not online. SpiritOfTheParadox
Joined: 09 Mar 2013
Total Posts: 822
23 Dec 2014 09:00 PM
I'm a beginner scripter but I would suggest making the Variable local.


local PUT VARIABLE NAME HERE = game.Workspace.Blahblah.Blah


if that don't work just delete the variable all together and just put game.Workspace.Blah everytime
Report Abuse
LilMcManiac is not online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
23 Dec 2014 09:01 PM
I fixed it nevermind.
Report Abuse
LilMcManiac is not online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
23 Dec 2014 09:21 PM
Nevermind, the bullet fires, but when it accidentally hits the charaters robot the explosion appears in the middle of the baseplate
Report Abuse
LilMcManiac is not online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
23 Dec 2014 09:23 PM
BUMP!!



PLEASE HELP ME GUYS!!!
Report Abuse
SpiritOfTheParadox is not online. SpiritOfTheParadox
Joined: 09 Mar 2013
Total Posts: 822
23 Dec 2014 09:35 PM
did you do Instance.new("Explosion", game.Workspace.Whatever)
Report Abuse
LilMcManiac is not online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
24 Dec 2014 09:48 AM
READ THE SCRIPT!!!
Report Abuse
parkiet3 is not online. parkiet3
Joined: 16 Jul 2011
Total Posts: 832
24 Dec 2014 10:04 AM
Ex.Position = -- give the pos of the bullet
Report Abuse
LilMcManiac is not online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
24 Dec 2014 10:24 AM
I do.. Read my edited script.
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