Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. local UIS = game:GetService("UserInputService")
  2. local Player = game:GetService("Players").LocalPlayer
  3. local RightArm = Player.Character.Torso["Right Shoulder"]
  4. local LeftArm = Player.Character.Torso["Left Shoulder"]
  5. local Character = Player.Character
  6.  
  7. local Run = game:GetService("RunService")
  8. local speed = .05
  9.  
  10. UIS.InputBegan:Connect(function(input)
  11. if input.KeyCode == Enum.KeyCode.R then
  12. Run.RenderStepped:Connect(function()
  13. local gnome = Instance.new("Sound",Character.Torso)
  14. gnome.Volume = 100
  15. gnome.SoundId = "rbxassetid://2521946636"
  16. gnome:Play()
  17. RightArm.C0 = RightArm.C0:lerp(CFrame.new(1.2,.5,-.5)*CFrame.Angles(math.rad(0),math.rad(.5),math.rad(0)),speed)
  18. LeftArm.C0 = LeftArm.C0:lerp(CFrame.new(-1.2,.5,-.5)*CFrame.Angles(math.rad(0),math.rad(.5),math.rad(0)),speed)
  19. end)
  20. end
  21. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement