For starters, I want to make a gear that increases my walkspeed and health by 30 if I press ' e '. I tried UserInput and Keypress, but failed :(. I want to do more advanced stuff with it on the future like summoning and combining with a monster (RPG).
Pretty easy!
you can add this is the code:
local players = game:GetService("Players") local player = players.LocalPlayer local mouse = player:GetMouse() local tool = [SPECIFY WHERE THE TOOL IS HERE] local equipped = false tool.Equipped:connect(function() equipped = true end) tool.Unequipped:connect(function() equipped = false end) mouse.KeyDown:connect(function(Key) if Key:lower() then if Key == "f" then --insert code end end end)