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 11 years ago
1mouse = game.Players.LocalPlayer:GetMouse()
2function onKeyDown(key)
3if key == "q" then
4    --code goes here
5end
6mouse.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
11 years ago
1sword=game.Lighting.Sword:Clone()--Clone a sword
2sword.Parent=Player.Character--Put it in the Character
0
thanks FPSStudioDidi 1 — 11y
Ad

Answer this question