Zhein29

Walkable Hats Script

Nov 22nd, 2022 (edited)
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. -- Subscribe to ZhenX on Youtube
  2. -- Credits to the Owner
  3. -- This is for Hats
  4.  
  5. for _, v in pairs(game.Players.LocalPlayer.Character:getChildren()) do
  6. if v.ClassName == "Accessory" then
  7. for i, k in pairs(v:GetDescendants()) do
  8. if k.ClassName == "Attachment" then
  9. s = Instance.new("RopeConstraint")
  10. k.Parent.CanCollide = true
  11. s.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  12. s.Attachment1 = k
  13. s.Attachment0 = game.Players.LocalPlayer.Character.Head.FaceCenterAttachment
  14. s.Visible = true
  15. s.Length = 10
  16. v.Handle.AccessoryWeld:Destroy()
  17. end
  18. end
  19. end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment