Advertisement
Beasrt

Untitled

Mar 30th, 2015
493
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. -- (Hat Giver Script - Loaded.)
  2.  
  3. debounce = true
  4.  
  5. function onTouched(hit)
  6. if (hit.Parent:findFirstChild("Humanoid") ~= nil and debounce == true) then
  7. debounce = false
  8. h = Instance.new("Hat")
  9. p = Instance.new("Part")
  10. h.Name = "Cattoad"
  11. p.Parent = h
  12. p.Position = hit.Parent:findFirstChild("Head").Position
  13. p.Name = "Handle"
  14. p.formFactor = 0
  15. p.Size = Vector3.new(1,1,2)
  16. p.BottomSurface = 0
  17. p.TopSurface = 0
  18. p.Locked = true
  19. script.Parent.Mesh:clone().Parent = p
  20. h.Parent = hit.Parent
  21. h.AttachmentForward = Vector3.new(-0, -0, -1)
  22. h.AttachmentPos = Vector3.new(0, 0.4, 0)
  23. h.AttachmentRight = Vector3.new(1, 0, 0)
  24. h.AttachmentUp = Vector3.new(0, 1, 0)
  25. wait(5)
  26. debounce = true
  27. end
  28. end
  29.  
  30. script.Parent.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement