Advertisement
Guest User

Untitled

a guest
Feb 18th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. local plr = game:GetService('Players').LocalPlayer;
  2. local char = plr.Character;
  3.  
  4. function cycle(num)
  5. local section=num % 1 * 3;
  6. local secondary=0.5 * math.pi * (section % 1);
  7. if section < 1 then
  8. return 1,1 - math.cos(secondary),1 - math.sin(secondary);
  9. elseif section < 2 then
  10. return 1 - math.sin(secondary),1,1 - math.cos(secondary);
  11. else
  12. return 1 - math.cos(secondary),1 - math.sin(secondary),1;
  13. end
  14. end
  15. wait(1)
  16. o81 = Instance.new("Sound")
  17. o81.Parent = plr.Character.Torso
  18. o81.SoundId = "rbxassetid://377233357"
  19. o81.Volume = 5
  20. o81.Looped = false
  21. local Sound=plr.Character.Torso.Sound
  22. Sound.Looped=true
  23. Sound:Play()
  24. --function chat end--
  25.  
  26. function rhats()
  27. local function GetAll(obj)
  28. for i, v in pairs(obj:getChildren()) do
  29. if v:IsA("Accessory") then
  30. v:Destroy()
  31. end
  32. GetAll(v)
  33. end
  34. end
  35. GetAll(char)
  36. end
  37. rhats()
  38.  
  39.  
  40. local plr = workspace
  41. function rsound()
  42. local function GetAll(obj)
  43. for i, v in pairs(obj:getChildren()) do
  44. if v:IsA("Sound") then
  45. v:Destroy()
  46. end
  47. GetAll(v)
  48. end
  49. end
  50. GetAll(plr)
  51. end
  52.  
  53. m = char.Head.Mesh
  54. h = m.Parent
  55. h.face.Texture = "rbxassetid://183096010"
  56. m.Scale = m.Scale+Vector3.new(.3,.3,.3)
  57. Neck = Instance.new("Part")
  58. Neckm = Instance.new("CylinderMesh")
  59. Neck.CanCollide = false
  60. Neck.Anchored = false
  61. Neck.Name = "Neck"
  62. Neck.Parent = char.Head
  63. Neck.Material = Enum.Material.SmoothPlastic
  64. Neck.Rotation = Vector3.new(0, 24, 0)
  65. Neck.Size = Vector3.new(1, 1, 1)
  66. Neck.CFrame = CFrame.new(m.Parent.CFrame.p)
  67. Neck.BrickColor = char.Head.BrickColor
  68. Neckm.Parent = Neck
  69. Neckm.Scale = Vector3.new(0.3, 0, 0.3)
  70. wld = Instance.new("Weld",char.Head)
  71. wld.Part0 = char.Torso
  72. wld.Part1 = Neck
  73. wld.C0 = CFrame.new(0,1,0)
  74.  
  75. game:GetService('Players').LocalPlayer.Chatted:connect(function(msg)
  76. if msg:sub(1,3):lower()==';pl' then
  77. local id = tonumber(msg:sub(5))
  78. Sound:Stop()
  79. Sound.SoundId='rbxassetid://'..id
  80. Sound:Play()
  81. elseif msg:sub(1,4):lower()==';vol' then
  82. local id = tonumber(msg:sub(6))
  83. Sound.Volume = id
  84. elseif msg:sub(1,6):lower():match(';mute ') then
  85. for i,v in pairs(game.Players:GetPlayers()) do
  86. if v.Name:lower():match(msg:sub(7):lower()) then
  87. plr = v.Character
  88. rsound()
  89. end
  90. end
  91. end
  92. end)
  93. game:GetService("RunService").Heartbeat:connect(function()
  94. m.Offset = m.Offset:lerp(Vector3.new(0, Sound.PlaybackLoudness/200, 0),.2)
  95. Neckm.Scale = Neckm.Scale:lerp(Vector3.new(0.8, Sound.PlaybackLoudness/160, 0.8), .2)
  96. wld.C0 = wld.C0:lerp(CFrame.new(0,1+Neckm.Scale.Y/2,0),1)
  97. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement