of     2   
chevron_rightchevron_rightchevron_right

cyrus1222
#18022105Saturday, December 19, 2009 6:13 AM GMT

r = game:service("RunService") shaft = script.Parent position = shaft.Position cccc = script.Parent.Explosion:clone() -- play explosion sound when projectile removed from game sSmoke = Instance.new("Smoke") sSmoke.RiseVelocity = 5 sSmoke.Size = .1 sSmoke.Parent = shaft sSmoke.Color = Color3.new(0,0,0) function fly() direction = shaft.CFrame.lookVector position = position + direction error = position - shaft.Position shaft.Velocity = 1*error end function blow() --[[ swoosh:stop() explosion = Instance.new("Explosion") explosion.Position = shaft.Position -- 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.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(function(t) swoosh:stop() cccc.Parent = Workspace cccc:play() explosion = Instance.new("Explosion") explosion.Position = shaft.Position explosion.Parent = Workspace explosion.BlastPressure = 0 ppPart = Instance.new("Part") ppPart.Parent = Workspace ppPart.CFrame = shaft.CFrame ppPart.Anchored = true ppPart.Transparency = 1 ppPart.CanCollide = false Smoke = Instance.new("Smoke") Smoke.Parent = Part Smoke.RiseVelocity = 10 Smoke.Size = 5 Smoke.Color = Color3.new(0,0,0) Smoke.RiseVelocity = 0 Smoke.Size = 0 Smoke:remove() ppPart:remove() shaft:remove() cccc:stop() cccc:remove() end) while t < d do fly() t = r.Stepped:wait() -- wait(.1) -- position = shaft.Position end any fixes?
AkaoKiyotsu
#18022217Saturday, December 19, 2009 6:17 AM GMT

Read the "Before posting code...." sticky.
cyrus1222
#18022283Saturday, December 19, 2009 6:20 AM GMT

give me the ID for this "Before posting code...." sticky! I don't see it! and I want this fixed, not a new script. AND you don't need ot halp if you don't want to and if you do not like the thread don't bump it...
AkaoKiyotsu
#18022347Saturday, December 19, 2009 6:23 AM GMT

Bump it? I posted like 30 seconds after you made the thread, liar.
cyrus1222
#18022457Saturday, December 19, 2009 6:27 AM GMT

who cares, that is what I call bumping a thread. now it will be on the forums longer. and how am I not following rules by posting this?
AkaoKiyotsu
#18022528Saturday, December 19, 2009 6:30 AM GMT

Not the rules, MrDoomBringer just said that a post with a ton of code and a "whats wrong with it" or similar one lined non specific tags will result in lack of replies, no rules were violated however.
cyrus1222
#18022590Saturday, December 19, 2009 6:33 AM GMT

ok,I didn't know that, I thought you said I was breaking a rule. and, this code is almost the exact code for the rocket, shorter here: r = game:service("RunService") shaft = script.Parent position = shaft.Position cccc = script.Parent.Explosion:clone() -- play explosion sound when projectile removed from game sSmoke = Instance.new("Smoke") sSmoke.RiseVelocity = 5 sSmoke.Size = .1 sSmoke.Parent = shaft sSmoke.Color = Color3.new(0,0,0) function fly() direction = shaft.CFrame.lookVector position = position + direction error = position - shaft.Position shaft.Velocity = 1*error end t, s = r.Stepped:wait() swoosh = script.Parent.Swoosh swoosh:play() d = t + 10.0 - s connection = shaft.Touched:connect(function(t) swoosh:stop() cccc.Parent = Workspace cccc:play() explosion = Instance.new("Explosion") explosion.Position = shaft.Position explosion.Parent = Workspace explosion.BlastPressure = 0 ppPart = Instance.new("Part") ppPart.Parent = Workspace ppPart.CFrame = shaft.CFrame ppPart.Anchored = true ppPart.Transparency = 1 ppPart.CanCollide = false Smoke = Instance.new("Smoke") Smoke.Parent = Part Smoke.RiseVelocity = 10 Smoke.Size = 5 Smoke.Color = Color3.new(0,0,0) Smoke.RiseVelocity = 0 Smoke.Size = 0 Smoke:remove() ppPart:remove() shaft:remove() cccc:stop() cccc:remove() end) while t < d do fly() t = r.Stepped:wait() end ------------------------------------------ the lowest I can go without breaking it...
gaius19
#18022645Saturday, December 19, 2009 6:35 AM GMT

Have you seen your name under 'Started By'? It's CYRUS1222... I'll see what's wrong with it in a second...
gaius19
#18022685Saturday, December 19, 2009 6:37 AM GMT

Does it, by any chance, happen to fall when you insert the Smoke into it?
cyrus1222
#18022800Saturday, December 19, 2009 6:42 AM GMT

nope. It's in there from when it appears.
gaius19
#18022823Saturday, December 19, 2009 6:43 AM GMT

Have you tested it without the Smoke? You can just not set it's parent btw... I'm wondering since I heard about a possible glitch, and I have yet to verify it...
cyrus1222
#18022845Saturday, December 19, 2009 6:44 AM GMT

what glitch? I could help.
cyrus1222
#18022901Saturday, December 19, 2009 6:47 AM GMT

I also have it controlable by script... could that be the problem? smoke did nothing.
gaius19
#18022903Saturday, December 19, 2009 6:47 AM GMT

Nevermind... I don't think it works... It was something about how Inserting Smoke into a Part interfered with the Physics Objects...
gaius19
#18022942Saturday, December 19, 2009 6:49 AM GMT

Actually, do you ever see the Smoke get inserted with the Script you last posted? Because you have Smoke.Parent = Part And I don't see where you declare Part...
cyrus1222
#18022944Saturday, December 19, 2009 6:49 AM GMT

was what I said possibly doing anything?
cyrus1222
#18022963Saturday, December 19, 2009 6:50 AM GMT

???
cyrus1222
#18022984Saturday, December 19, 2009 6:51 AM GMT

I'm using with no smoke right now.
gaius19
#18023014Saturday, December 19, 2009 6:52 AM GMT

No, I said the Smoke probably doesn't mess with the Physics Objects... Must be something else...
gaius19
#18023027Saturday, December 19, 2009 6:53 AM GMT

I can only think of 2 problems with your script...
cyrus1222
#18023037Saturday, December 19, 2009 6:53 AM GMT

is CFraming the bricks while they're moving possibly doing anything?
gaius19
#18023094Saturday, December 19, 2009 6:56 AM GMT

No, probably not... Though, I believe that Smoke.Parent = Part Should be Smoke.Parent = ppPart
cyrus1222
#18023113Saturday, December 19, 2009 6:57 AM GMT

I KNOW! I'll fix that! That's not the problem if I'm turning that part into a "Comment"
gaius19
#18023190Saturday, December 19, 2009 7:00 AM GMT

Good point, but I'm still looking for something that's actually wrong... It's not my script, so it's difficult to analyze it... Especially this late...
cyrus1222
#18023213Saturday, December 19, 2009 7:01 AM GMT

it's partly mine, partly roblox's. I edited the rocket script...

    of     2   
chevron_rightchevron_rightchevron_right