Advertisement
ZKCMCheats

[FE] Hat to Tool Converter

Mar 16th, 2019
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.88 KB | None | 0 0
  1. --[[ FE Hat To Tool Converter
  2.     Script made by Cyclically
  3.     Credits to dhruvil123 for help
  4.     https://v3rmillion.net/member.php?action=profile&uid=785986
  5. ]]
  6.  
  7. -- Don't edit script unless you know what you're doing. If you wanna add this into a script, please give credits and message me on discord that you added it in a script at Cyclically#4905
  8.  
  9. local LocalPlayer = game:GetService("Players").LocalPlayer
  10. for _, hat in pairs(LocalPlayer.Character.Humanoid:GetAccessories()) do
  11.     local tool = Instance.new("Tool", LocalPlayer.Backpack)
  12.     tool.Name = hat.Name
  13.     local hathandle = hat.Handle
  14.     local hatweld = hathandle:FindFirstChildOfClass("Weld")
  15.     hathandle.Parent = tool
  16.     hathandle.Massless = true
  17.     tool.Equipped:Connect(function()
  18.         hatweld.Part0 = nil
  19.     end)
  20.     tool.Unequipped:Connect(function()
  21.         hatweld.Part0 = hathandle
  22.     end)
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement