Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-3

why is my fire ball not working?

Asked by 8 years ago

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
go get the script and can someone please help me antwon6393 0 — 8y
0
Post it here, or no help Im_Kritz 334 — 8y
0
Agreed ^ TheDeadlyPanther 2460 — 8y
0
how antwon6393 0 — 8y
View all comments (3 more)
0
there antwon6393 0 — 8y
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 18071 — 8y
0
well i chaned the codeing and fixed a few things but no help antwon6393 0 — 8y

1 answer

Log in to vote
0
Answered by
Pyrondon 2089 Game Jam Winner Moderation Voter Community Moderator
8 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

Ad

Answer this question