|
| 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 |
|
|
|
| 23 Dec 2014 07:09 PM |
| you Gots to set the Parent property of the Explosion to the Bullet |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 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 |
|
|
|
| 23 Dec 2014 08:38 PM |
| Bump!! Guys please help.. Are any of you scripters? Be nice and help me please! |
|
|
| Report Abuse |
|
|
|
| 23 Dec 2014 08:46 PM |
| Come on guys! I really need help!!!! |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 23 Dec 2014 09:23 PM |
BUMP!!
PLEASE HELP ME GUYS!!! |
|
|
| Report Abuse |
|
|
|
| 23 Dec 2014 09:35 PM |
| did you do Instance.new("Explosion", game.Workspace.Whatever) |
|
|
| Report Abuse |
|
|
| |
|
parkiet3
|
  |
| Joined: 16 Jul 2011 |
| Total Posts: 832 |
|
|
| 24 Dec 2014 10:04 AM |
| Ex.Position = -- give the pos of the bullet |
|
|
| Report Abuse |
|
|
|
| 24 Dec 2014 10:24 AM |
| I do.. Read my edited script. |
|
|
| Report Abuse |
|
|