nicoi4233666

Untitled

Dec 28th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.97 KB | None | 0 0
  1. --By Rufus14
  2. plr = game.Players.LocalPlayer
  3. char = plr.Character
  4. rig = char.Torso
  5. dededed = Instance.new("Sound", rig)
  6. dededed.SoundId = "rbxassetid://565424701"
  7. dededed1 = Instance.new("Sound", rig)
  8. dededed1.SoundId = "rbxassetid://565423860"
  9. rip = false
  10. for i = 1,20 do
  11.     wait()
  12. print("lol")
  13. end
  14. function dead(arm)
  15.         if not rip then
  16.         rip = true
  17.     local Math = math.random(1,2)
  18.     local human = arm.Parent:FindFirstChild("Humanoid")
  19.     print(human)
  20.     local root = arm.Parent:FindFirstChild("HumanoidRootPart")
  21.     print(root)
  22.     local joint = root:FindFirstChild("RootJoint")
  23.     print(joint)
  24.     if Math == 1 then
  25.     dededed:Play()
  26.     end
  27.     if Math == 2 then
  28.     dededed1:Play()
  29.     end
  30.     for i = 1,50 do
  31.     wait()
  32.     joint.C0 = joint.C0 * CFrame.Angles(1,0,0)
  33. end
  34.     human:destroy()
  35.     rip = false
  36. end
  37. end
  38. char["Left Arm"].Touched:connect(dead)
  39. --[[
  40.     weld = Instance.new("Weld",head)
  41.     weld.Part0 = head
  42.     weld.Part1 = char["Right Arm"]
  43. --]]
Advertisement
Add Comment
Please, Sign In to add comment