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

How to equip a tool when pressing a keybind?

I have a keybind script, and I want the player to be able to equip a tool when he/she presses Q, except I dont know how to make the tool equip after pressing Q. I tried game.Players.LocalPlayer.Backpack.Item:Equip()

local Player = game.Players.LocalPlayer
Mouse = Player:GetMouse()

Mouse.KeyDown:connect(function(Key)
	if(Key:lower() == "q") then
		Player.BackPack.PDA:Equip()
	end
end)

1 comment

1 answer

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