Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local bin = script.Parent
- function animate(torso)
- local m = torso:FindFirstChild("Right Shoulder")
- if m ~= nil then
- m.C0 = CFrame.fromEulerAnglesXYZ(-3.14, -4.71, 3.14) + Vector3.new(1, 0.5, 0)
- end
- m = torso:FindFirstChild("Left Shoulder")
- if m ~= nil then
- m.C0 = CFrame.fromEulerAnglesXYZ(3.14, 4.71, -3.14) + Vector3.new(-1, 0.5, 0)
- end
- m = torso:FindFirstChild("Left Hip")
- if m ~= nil then
- m.C0 = CFrame.fromEulerAnglesXYZ(3.14, 4.71, 3.14) + Vector3.new(-1, -1, 0)
- end
- m = torso:FindFirstChild("Right Hip")
- if m ~= nil then
- m.C0 = CFrame.fromEulerAnglesXYZ(3.14, -4.71, 3.14) + Vector3.new(1, -1, 0)
- end
- end
- local debound = false
- function onHit(hit)
- if hit.Parent ~= nil then
- local human = hit.Parent:FindFirstChild("Humanoid")
- if human ~= nil and debound == false then
- debound = true
- bin.BrickColor = BrickColor.new(21)
- bin.Size = Vector3.new(2, .4, 2)
- bin.CFrame = bin.Parent.Stand.CFrame + Vector3.new(0, -.2, 0)
- local torso = hit.Parent:FindFirstChild("Torso")
- if torso ~= nil then
- local weld = torso:FindFirstChild("Neck")
- if weld ~= nil then
- weld.C0 = CFrame.fromEulerAnglesXYZ(1.57, 3.14, 0) + Vector3.new(0, 1, 0)
- if torso:FindFirstChild("BodyGyro") ~= nil then
- torso.BodyGyro.Parent = nil
- end
- if torso:FindFirstChild("Gravity") ~= nil then
- torso.Gravity.Parent = nil
- animate(torso)
- end
- end
- end
- wait(3)
- bin.BrickColor = BrickColor.new(28)
- debound = false
- bin.Size = Vector3.new(2, .8, 2)
- bin.CFrame = bin.Parent.Stand.CFrame + Vector3.new(0, -.4, 0)
- end
- end
- end
- bin.Touched:connect(onHit)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement