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

How do I make a script where when you press a button like Q and get a sword?

Asked by 10 years ago

I am trying to script it but im a little busy anyone who can help?

1 answer

Log in to vote
0
Answered by 10 years ago
local plr = game.Players.LocalPlayer

function onKey(key)
    if key=="q" then
        game.Workspace.Lighting.LinkedSword:Clone(plr.StarterPack)
    end
end

I haven't test it.

Put a linked sword in lighting.

Try local script or regular.

Ad

Answer this question