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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » ROBLOX Fun » Look What I Made
Home Search
 

Re: i need help for a rocket

Previous Thread :: Next Thread 
foxpolic is not online. foxpolic
Top 100 Poster
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 is not online. foxpolic
Top 100 Poster
Joined: 19 Feb 2007
Total Posts: 1493
26 Mar 2007 04:20 PM
opss i mess up
Report Abuse
KillerofDestrucktion is not online. KillerofDestrucktion
Joined: 23 Mar 2007
Total Posts: 6
26 Mar 2007 07:24 PM
I dont get it nothing works
Report Abuse
MrDoomBringer is not online. MrDoomBringer
Top 100 Poster
Joined: 21 Nov 2006
Total Posts: 6176
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 is not online. foxpolic
Top 100 Poster
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
MrDoomBringer is not online. MrDoomBringer
Top 100 Poster
Joined: 21 Nov 2006
Total Posts: 6176
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 is not online. foxpolic
Top 100 Poster
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 is not online. Habakkuk
Joined: 27 Mar 2007
Total Posts: 12
27 Mar 2007 09:12 PM
are you gamman foxpolic? you type like him!
Report Abuse
klondike07232 is not online. klondike07232
Joined: 14 Feb 2007
Total Posts: 125
27 Mar 2007 09:26 PM
ya i just noticed that to weird! lol
Report Abuse
foxpolic is not online. foxpolic
Top 100 Poster
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
klondike07232 is not online. klondike07232
Joined: 14 Feb 2007
Total Posts: 125
28 Mar 2007 07:25 PM
Ok, I could not understand a word you said lol!
Report Abuse
foxpolic is not online. foxpolic
Top 100 Poster
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
SuddenRush12G is not online. SuddenRush12G
Joined: 27 Apr 2012
Total Posts: 11565
04 May 2013 06:53 PM
o
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » ROBLOX Fun » Look What I Made
   
 
   
  • 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