1MinuteRoblox

Inventory Tool Toggle Handler

Apr 22nd, 2025
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. local re = game.ReplicatedStorage:WaitForChild("InventoryRE")
  2.  
  3. re.OnServerEvent:Connect(function(player, toolName)
  4.  
  5. if player.Character and toolName then
  6.  
  7. if player.Backpack:FindFirstChild(toolName) then
  8. player.Character.Humanoid:EquipTool(player.Backpack[toolName])
  9.  
  10. elseif player.Character:FindFirstChild(toolName) then
  11. player.Character.Humanoid:UnequipTools()
  12. end
  13. end
  14. end)
  15.  
  16. --Scripted by 1MinuteRobloxTutorials
Advertisement
Add Comment
Please, Sign In to add comment