New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Still have questions? Join our Discord server and get real time help.
-3

# why is my fire ball not working?

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.

http://www.roblox.com/item.aspx?id=320509215

--hi this is my second script wish lucky from Taleofhelper

local player = script.parent.parent
local mouse = player:GetMouse()
enabled =false

function onKeyDown(key)
key = key:lower()
if key == "q" and not enabled then --f for fireball
enabled = true
fireball = Instance.new("Part")
fireball.Shape = "Ball"
fireball.BrickColor = BrickColor.new("Really red")
fireball.Transparency = 0.3
fireball.Topsurface = "smooth"
fireball.BottomSurface = "smooth"
fireball.CFrame = player.Character.Torso.CFrame *CFrame.new(0,0,-5)
fireball.Parent = game.Workspace
local mesh = Instance.new("SpecialMesh",fireball)
mesh.MeshType = "Sphere"
local fire = Instance.new("Fire",fireball)
fire.Heat = 8
fire.Size = 10
local bv = Instance.new("bodyvalocity")
bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
bv.velocity = player.Character.Torso.CFrame.lookVector*80
for i = 1,13 do
fireball.Mesh.scale = fireball.Mesh.Scale +Vector3.new(0.1,0.1,0.1)
wait()
end
bv.parent = fireball
fireball.Cancollide = false
wait(1)
enabled = false
wait(9)
fireball:Destroy()
end
end

mouse.KeyDown:connect(onKeyDown)


0
0
Post it here, or no help Im_Kritz 334 — 4y
0
Agreed ^ TheDeadlyPanther 2437 — 4y
0
how antwon6393 0 — 4y
0
there antwon6393 0 — 4y
0
What is the problem with this script? What's it supposed to do? What's it do instead? What have you tried to figure out what's wrong? BlueTaslem 17801 — 4y
0
well i chaned the codeing and fixed a few things but no help antwon6393 0 — 4y

0
Pyrondon 2084
4 years ago

In line 24, BodyVelocity is misspelled.

I think it should be:

local bv = Instance.new("BodyVelocity")


Maybe that will help? You may have to capitalise Velocity in line 26 as well, I'm unsure.

Also, I think this form of keyboard input is deprecated. I find this one easier to use anyhow:

http://wiki.roblox.com/index.php?title=Keyboard_input