Player = script.Parent.Parent
mouse = Player:GetMouse()
function onKeyDown(key)
key = key:lower()
if key == "z" then
x = Instance.new("Part")
x.BrickColor = BrickColor.new("Bright red")
x.Size = Vector3.new(10,10,10)
x.TopSurface = "Smooth"
x.BottomSurface = "Smooth"
x.Shape = "Ball"
x.Tranparency = 0.7
y = Instance.new("BodyVelocity")
y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
y.Velocity = Player.Character.Torso.CFrame.lookVector*80
x.Parent = game.Workspace
y.Parent = x
f = Instance.new("Fire", x)
f.Size = 12
f.Heat = 0
x.Cframe = Player.Character.Torso.CFrame*CFrame.new(0, 0, -12)
game.Debris:AddItem(x, 6)
end
end
mouse.KeyDown:connect(onKeyDown)
✓ ANSWER ACCEPTED
I'm not sure why this fire script is not working ?
1 answer
✓ Accepted answer
Put local in front of the variables. Good luck!
4 comments
0
THANK YOU!!!!!!!!!!!!!!!!!!!!!!
0
Lol, you're welcome (: You should remember to accept my answer (:
0
Just did no problem
0
Wow! That was hardly a delay at all. What are you the flash? Lol, thanks bro
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
... it would be nice if you can post some errors. Open the output window in studio. If there isn't an error, then what behavior are you expecting and what behavior are you currently getting?
x y f under is bule