Advertisement
TheClassicMeme

testing sounds

Jun 3rd, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. plr = game.Players.LocalPlayer
  2. repeat
  3. wait(0.4)
  4. until plr.Character
  5. chr = plr.Character
  6. human = chr:FindFirstChild("Humanoid")
  7. mouse = plr:GetMouse()
  8. cam = workspace.CurrentCamera
  9. selected = false
  10. equipd = false
  11. tors = chr.Torso
  12. rarm = chr["Right Arm"]
  13. larm = chr["Left Arm"]
  14. rleg = chr["Right Leg"]
  15. lleg = chr["Left Leg"]
  16. hrp = chr.HumanoidRootPart
  17. hed = chr.Head
  18. anim = human.Animator
  19. activu = false
  20. ragged = false
  21. batting = false
  22. Heartbeat = Instance.new("BindableEvent")
  23. Heartbeat.Name = "Heartbeat"
  24. Heartbeat.Parent = script
  25. frame = 0.03333333333333333
  26. tf = 0
  27. game:GetService("RunService").Heartbeat:connect(function(s, p)
  28. tf = tf + s
  29. if tf >= frame then
  30. for i = 1, math.floor(tf / frame) do
  31. Heartbeat:Fire()
  32. end
  33. local lauf1 = Instance.new("Sound")
  34. lauf1.SoundId = "rbxassetid://137473066"
  35. lauf1.Volume = 1.5
  36. lauf1.Pitch = 2
  37. lauf1.Parent = hrp
  38. function lerpz(joint, prop, cfrmz, alp)
  39. joint[prop] = joint[prop]:lerp(cfrmz, alp)
  40. end
  41. if key == "m" then
  42. lauf()
  43. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement