Advertisement
bobopopcornboy

pull block from hat

Oct 22nd, 2024
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. animate = Instance.new("Animation",script)
  2. animate.AnimationId = "rbxassetid://106806439701628"
  3.  
  4. humanoid = workspace.bobopopcornboy.Humanoid
  5. --humanoid = script.Parent.Humanoid
  6. char = humanoid.Parent
  7.  
  8. animateTrack = humanoid:LoadAnimation(animate)
  9.  
  10. prox = Instance.new("ProximityPrompt",char)
  11. prox.ActionText = "Get Block"
  12. prox.Enabled = true
  13.  
  14. function play()
  15.  
  16.  
  17. animateTrack:Play()
  18. task.wait(1)
  19. local Part = Instance.new("Part")
  20. Part.Parent = workspace
  21. Part.CFrame = char.RightHand.CFrame
  22. Part.Size = Vector3.new(1,1,1)
  23.  
  24. local weld = Instance.new("WeldConstraint",Part)
  25. weld.Part0 = Part
  26. weld.Part1 = char.RightHand
  27. wait(0.5)
  28. weld:Destroy()
  29. end
  30. prox.Triggered:Connect(play)
  31. play()
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement