Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- animate = Instance.new("Animation",script)
- animate.AnimationId = "rbxassetid://106806439701628"
- humanoid = workspace.bobopopcornboy.Humanoid
- --humanoid = script.Parent.Humanoid
- char = humanoid.Parent
- animateTrack = humanoid:LoadAnimation(animate)
- prox = Instance.new("ProximityPrompt",char)
- prox.ActionText = "Get Block"
- prox.Enabled = true
- function play()
- animateTrack:Play()
- task.wait(1)
- local Part = Instance.new("Part")
- Part.Parent = workspace
- Part.CFrame = char.RightHand.CFrame
- Part.Size = Vector3.new(1,1,1)
- local weld = Instance.new("WeldConstraint",Part)
- weld.Part0 = Part
- weld.Part1 = char.RightHand
- wait(0.5)
- weld:Destroy()
- end
- prox.Triggered:Connect(play)
- play()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement