foxpolic
|
  |
 |
| Joined: 19 Feb 2007 |
| Total Posts: 1493 |
|
|
| 26 Mar 2007 04:20 PM |
see i tiri to git a rocket whif a shockwave this is what i thinking so far r = game:service("RunService")
shaft = script.Parent position = shaft.Position
function fly() direction = shaft.CFrame.lookVector position = position + (direction*1.5) error = position - shaft.Position shaft.Velocity = error * 7 end
function blow() swoosh:stop() explosion = Instance.new("Explosion") explosion.BlastRadius = 100 explosion.BlastPressure = 1000000 explosion.Position = shaft.Position explosion.shockwave = (10*BlastRadius)
-- find instigator tag local creator = script.Parent:findFirstChild("creator") if creator ~= nil then explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end) end
explosion.Parent = game.Workspace connection:disconnect() wait(.1) shaft:remove() end
function onPlayerBlownUp(part, distance, creator) if part.Name == "Head" then local humanoid = part.Parent:findFirstChild("Humanoid") tagHumanoid(humanoid, creator) end end
function tagHumanoid(humanoid, creator) -- tag does not need to expire iff all explosions lethal if creator ~= nil then local new_tag = creator:clone() new_tag.Parent = humanoid end end
function untagHumanoid(humanoid) if humanoid ~= nil then local tag = humanoid:findFirstChild("creator") if tag ~= nil then tag.Parent = nil end end end
t, s = r.Stepped:wait()
swoosh = script.Parent.Swoosh swoosh:play()
d = t + 10.0 - s connection = shaft.Touched:connect(blow)
while t < d do fly() t = r.Stepped:wait() end
-- at max range script.Parent.Explosion.PlayOnRemove = false swoosh:stop() shaft:remthe thing is that the shock wave not working and the rocket not Explosion or flying need some help |
|
|
| Report Abuse |
|
|
foxpolic
|
  |
 |
| Joined: 19 Feb 2007 |
| Total Posts: 1493 |
|
| |
|
|
| 26 Mar 2007 07:24 PM |
| I dont get it nothing works |
|
|
| Report Abuse |
|
|
|
| 27 Mar 2007 02:36 PM |
Uh.. the explosion doesn't have a "shockwave" child..
Nothing will work here. Code doesn't do what you want it to do, it does what it is told to do. |
|
|
| Report Abuse |
|
|
foxpolic
|
  |
 |
| Joined: 19 Feb 2007 |
| Total Posts: 1493 |
|
|
| 27 Mar 2007 04:32 PM |
| you wong it happin to me befor ok some one miss me whif a rocket but wan it hit i was blow a way and fell of the side and wan iw as tiring to amke it bigger i wasd testing it i see that a littel vear littel bit move from the rocket goign boom it it is possable i jsut need to make to show one |
|
|
| Report Abuse |
|
|
|
| 27 Mar 2007 06:37 PM |
No, there is no child for the explosion that is a "shockwave".
Ok, look. When you open up the Roblox studio, click on "Help" then "Open Object Browser." Now, in the list that opens, look for "Explosion, "and click on it to see all the variables. There isn't one names" shockwave." You probably don't know enough code to know what a parent, child, and class is, so learn some more code. What probably happened was the explosion radius, which is that other variable, was set higher, and that is what you saw as the "shockwave." If you want the blast radius to hit more stuff, then set the blast radius variable higher. |
|
|
| Report Abuse |
|
|
foxpolic
|
  |
 |
| Joined: 19 Feb 2007 |
| Total Posts: 1493 |
|
|
| 27 Mar 2007 08:55 PM |
| no you just dont tir like in life all Explosion have a shock wave the bigger the bomb the bigger the shock waves power and well you wong i just remaber want to knwo y wan you shot a rocket after the Explosion what it hit moves it the shockwave duh it been porgram into the Explosion so you cant say thear no shock wave so that the end i win |
|
|
| Report Abuse |
|
|
Habakkuk
|
  |
| Joined: 27 Mar 2007 |
| Total Posts: 12 |
|
|
| 27 Mar 2007 09:12 PM |
| are you gamman foxpolic? you type like him! |
|
|
| Report Abuse |
|
|
|
| 27 Mar 2007 09:26 PM |
| ya i just noticed that to weird! lol |
|
|
| Report Abuse |
|
|
foxpolic
|
  |
 |
| Joined: 19 Feb 2007 |
| Total Posts: 1493 |
|
|
| 28 Mar 2007 05:28 PM |
| no i not i bet he cant ever find i what have find i have find how the poeple on roblox tap thim playing it a program called camstudio you tap you doign thing and add it to youtube it a free program it fun to ues i am bnot gamman so who is calling me gamman buss off |
|
|
| Report Abuse |
|
|
|
| 28 Mar 2007 07:25 PM |
| Ok, I could not understand a word you said lol! |
|
|
| Report Abuse |
|
|
foxpolic
|
  |
 |
| Joined: 19 Feb 2007 |
| Total Posts: 1493 |
|
|
| 29 Mar 2007 07:56 PM |
| and i see you like calling poeple for who thim r not |
|
|
| Report Abuse |
|
|
| |
|