Advertisement
DrakerMaker

Visualizer

Sep 3rd, 2019 (edited)
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. local plr = owner
  2. local char = plr.Character
  3. local main = char.HumanoidRootPart
  4. local remote = Instance.new("RemoteEvent", main)
  5. remote.Name = "SoundAlert"
  6. local float = 5
  7. local pbl = 0
  8. local face = Instance.new("Part", owner.Character)
  9. face.Name = "Face"
  10. face.CanCollide = false
  11. face.Size = Vector3.new(0.05+pbl/200,0.05+pbl/200,0.05+pbl/200)
  12. face.Material = "Neon"
  13. face.CFrame = main.CFrame *CFrame.new(1, 3, 3)
  14. local sound = Instance.new("Sound", face)
  15. sound.SoundId = "rbxassetid://3560497244"
  16. sound.Volume = 2
  17. sound.Looped = true
  18. sound:Play()
  19. sound.Name = "Song"
  20. local velo = Instance.new("BodyVelocity", face)
  21. velo.MaxForce = Vector3.new(900000000000, 900000000000, 900000000000)
  22. velo.P = Vector3.new(900000000000, 900000000000, 900000000000)
  23. local angle = Instance.new("BodyAngularVelocity", face)
  24. a = [[
  25. spawn(function()
  26. Music = owner.Character.Face.Song
  27. Event = owner.Character.HumanoidRootPart.SoundAlert
  28. RunService = game:GetService("RunService")
  29. RunService.RenderStepped:Connect(function()
  30. Event:FireServer(Music.PlaybackLoudness)
  31. end)
  32. end)
  33. ]]
  34. NLS(a,main)
  35. remote.OnServerEvent:connect(function(P,X)
  36. float = float +5
  37. pbl = X
  38. end)
  39. vis = coroutine.wrap(function()
  40. while wait() do
  41. for i = 0,1,0.1 do
  42. wait()
  43. local service = game:GetService("TweenService")
  44. local goal = {}
  45. goal.CFrame = main.CFrame *CFrame.new(0, 5, 0)
  46. goal.Size = Vector3.new(0.05+pbl/80,0.05+pbl/80,0.05+pbl/80)
  47. local tweeninfo = TweenInfo.new(0.6)
  48. local tweeninfo2 = TweenInfo.new(0)
  49. local goal2 = {}
  50. goal2.Size = Vector3.new(0.05+pbl/50,0.05+pbl/50,0.05+pbl/50)
  51. goal2.Color = Color3.new(0.05+pbl/50,0.05+pbl/50,0.05+pbl/50)
  52. local tween2 = service:Create(face, tweeninfo, goal2)
  53. tween2:Play()
  54. end
  55. end
  56. end)vis()
  57. plr.Chatted:connect(function(msg)
  58. if msg:sub(1,5) == ">play" then
  59. sound:Stop()
  60. sound.SoundId = "rbxassetid://"..msg:sub(7)
  61. sound:Play()
  62. end
  63. if msg:sub(1,7) == ">resume" then
  64. sound:Resume()
  65. end
  66. if msg:sub(1,5) == ">stop" then
  67. sound:Stop()
  68. end
  69. if msg:sub(1,4) == ">vol" then
  70. sound.Volume = msg:sub(6)
  71. end
  72. if msg:sub(1,6) == ">pitch" then
  73. sound.PlaybackSpeed = msg:sub(8)
  74. end
  75. end)
  76. floatanim = coroutine.wrap(function()
  77. while true do
  78. wait()
  79. for i = 0,1,0.1 do
  80. float = float +0.06
  81. wait()
  82. end
  83. for i = 0,1,0.1 do
  84. wait()
  85. float = float +0.06
  86. end
  87. end
  88. end)
  89. floatanim()
  90. while wait() do
  91. velo.Velocity = owner.Character.Head.Position - face.Position +Vector3.new(0, 3, 0)
  92. if pbl < 300 then
  93. angle.AngularVelocity = Vector3.new(math.sin(pbl) *3, math.sin(float) *3, math.sin(-pbl) *3)
  94. end
  95. if pbl > 299 then
  96. angle.AngularVelocity = Vector3.new(math.sin(-pbl) *3, math.sin(-pbl) *3, math.sin(-pbl) *3)
  97. end
  98. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement