Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

why is my fire ball not working?

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)
		
		

7 comments

0

go get the script and can someone please help me

0

Post it here, or no help

0

Agreed ^

0

how

0

there

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?

0

well i chaned the codeing and fixed a few things but no help

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.