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

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

Asked by 10 years ago
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

Log in to vote
0
Answered by
ultrabug 306 Moderation Voter
10 years ago
sword=game.Lighting.Sword:Clone()--Clone a sword
sword.Parent=Player.Character--Put it in the Character
0
thanks FPSStudioDidi 1 — 10y
Ad

Answer this question