Facebook
From Billwa, 9 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 434
  1. Salute = Instance.new("HopperBin")
  2. Salute.Parent = game.Players.meunumbertwo.Backpack
  3. Salute.Name = "Salute"
  4.  
  5. script = Instance.new("LocalScript")
  6. script.Parent = Salute
  7. script.Name = "LocalScript"
  8.  
  9. function Salute()
  10. local torso = script.Parent.Parent.Parent.Character:FindFirstChild("Torso")
  11. local motor = torso:FindFirstChild("Right Shoulder")
  12. local w = Instance.new("Weld")
  13. if w.Part1 == nil  then
  14. w.Part0 = torso
  15. w.Part1 = torso.Parent:FindFirstChild("Right Arm")
  16. w.Name = "Right Arm Weld"
  17. w.C1 = CFrame.new(-1.5, 0.75, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(180), 0, math.rad(-20))
  18. motor.Part1 = nil
  19. w.Parent = w.Part0
  20. end
  21. end
  22.  
  23. function Unsalute()
  24. local torso = script.Parent.Parent.Parent.Character:FindFirstChild("Torso")
  25. local objects = {torso:FindFirstChild("Right Shoulder"), torso:FindFirstChild("Right Arm Weld")}
  26. objects[2].C1 = CFrame.new(-1.5, 0.75, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(200), 0, math.rad(-20))
  27. wait(0.5)
  28. objects[1].Part1 = objects[2].Part1
  29. objects[2]:Remove()
  30. end
  31.  
  32. function Selected(mouse)
  33. mouse.Button1Down:connect(Salute)
  34. mouse.Button1Up:connect(Unsalute)
  35. end
  36. script.Parent.Selected:connect(Selected)