Veltonixc
|
  |
| Joined: 27 May 2015 |
| Total Posts: 126 |
|
|
| 19 Jul 2015 06:52 PM |
Weapon = script.Parent.Name local player = game:GetService("Players").LocalPlayer; local mouse = player:GetMouse(); local tool = player.Backpack:FindFirstChild(""..Weapon..""); db = 1 -- Debounce mouse.KeyDown:connect(function(key) if key == "e" then if db == 1 then player.Character.Humanoid:EquipTool(tool); db = 2 else player.Character.Humanoid:UnequipTools() db = 1 end end end)
it works but i don't want players to be able to equip the sword the normal way (as in , click 1,2,3,4,5,..ect, and by clicking the tool. i want it so the only way you can use your sword is by clicking e help how do i do this? |
|
|
| Report Abuse |
|