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

How to Make A KeyDown Function Script Where You take out your sword?

mouse = game.Players.LocalPlayer:GetMouse()
function onKeyDown(key)
if key == "q" then
    --code goes here
end
mouse.KeyDown:connect(onKeyDown)

Can anybody help me with the Cframing idk how to do it

1 answer

✓ Accepted answer
sword=game.Lighting.Sword:Clone()--Clone a sword
sword.Parent=Player.Character--Put it in the Character

1 comment

0

thanks

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