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

How to make a fire ball that shoots using keydowns?

I need help so i can build a fire ball :O!

2 answers

Instance a fire ball when a key is pressed and add BodyVelocity.

Alright, im not gonna give you the code, because then you wouldn't be learning, BUT..... here is the code for making the keydown function. The rest should be CAKE. Put this in a local script. Player = game.Players.LocalPlayer Mouse = Player:GetMouse() --Method that gets the player's mouse function onKeyDown(key) key = key:lower() -- makes it so the function wont break if your using shift or capslock if key == "z" then Player:BreakJoints() -- kills player end end Mouse.KeyDown:connect(onKeyDown)

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