Advertisement
TheUnknownDiscord

funny

Nov 8th, 2021 (edited)
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. part = Instance.new("Part", owner.Character)
  2. part.Massless = true
  3. part.BottomSurface = Enum.SurfaceType.Smooth
  4. part.TopSurface = Enum.SurfaceType.Smooth
  5. part.Size = Vector3.new(3.2,1.6,1.2)
  6. part.Name = "partlolagain"
  7. local tweenService = game:GetService("TweenService")
  8. music = Instance.new("Sound", part)
  9. music.SoundId = "rbxassetid://"
  10. music.Volume = 1
  11. music.Looped = true
  12. music:Play()
  13. music.Name = "Themusic"
  14. music.RollOffMinDistance = 20
  15. Weld4 = Instance.new("Weld", owner.Character.Head)
  16. Weld4.Part0 = part
  17. Weld4.Part1 = owner.Character.Head
  18. Weld4.C0 = CFrame.new(0,0,4.5)
  19. part.CanCollide = false
  20. part:SetNetworkOwner(owner)
  21. part.Material = Enum.Material.Neon
  22. part.Locked = true
  23. random2 = math.random(0.1,2)
  24. part:SetNetworkOwner(owner)
  25. random = math.random(1,5)
  26. coroutine.wrap(function()
  27. while true do
  28. wait(random)
  29. coroutine.wrap(function()
  30. spininfo = TweenInfo.new(random2,Enum.EasingStyle.Linear)
  31.  
  32. Spin1 = tweenService:Create(Weld4,spininfo,{C0 = Weld4.C0 * CFrame.Angles(0,math.rad(120),math.rad(5))})
  33. Spin2 = tweenService:Create(Weld4,spininfo,{C0 = Weld4.C0 * CFrame.Angles(0,math.rad(240),math.rad(5))})
  34. Spin3 = tweenService:Create(Weld4,spininfo,{C0 = Weld4.C0 * CFrame.Angles(0,math.rad(360),math.rad(5))})
  35.  
  36. Spin1:Play()
  37. Spin1.Completed:Connect(function()Spin2:Play() end)
  38. Spin2.Completed:Connect(function()Spin3:Play() end)
  39. Spin3.Completed:Connect(function()Spin1:Play() end)
  40. end)()
  41. local timeToFade3 = random
  42. local object3 = music
  43. local tweenInfo3 = TweenInfo.new(timeToFade3)
  44. local goal4 = {}
  45. goal4.PlaybackSpeed = random2
  46. local tween4 = tweenService:Create(object3, tweenInfo3, goal4)
  47. tween4:Play()
  48. random = math.random(1,5)
  49. end
  50. end)()
  51. wait()
  52. NLS([[
  53. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  54. local sizeevent = ReplicatedStorage:WaitForChild("sizeEvent")
  55. local part = owner.Character:WaitForChild("partlolagain")
  56. local music = part:WaitForChild("Themusic")
  57. local MaxLoudness = 175
  58. while true do
  59. local Amplitude = math.clamp(music.PlaybackLoudness / MaxLoudness, 1, 5)
  60. part.Size = Vector3.new(Amplitude, Amplitude, Amplitude)
  61. part.Color = Color3.fromRGB(255,music.PlaybackLoudness / 1.75,0)
  62. sizeevent:FireServer(part.Size, part.Color)
  63. task.wait()
  64. end
  65. ]],owner.PlayerGui)
  66. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  67. local sizeevent = Instance.new("RemoteEvent", ReplicatedStorage)
  68. sizeevent.Name = "sizeEvent"
  69.  
  70. local function sizer(player, size, color)
  71. part.Color = color
  72. part.Size = size
  73. end
  74.  
  75. sizeevent.OnServerEvent:Connect(sizer)
  76.  
  77. owner.Chatted:connect(function(message)
  78. if message:sub(1,6) == "!Play " then
  79. music:Stop()
  80. music.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6)
  81. music:Play()
  82. elseif message:sub(1,7) == "!Speed " then
  83. music.PlaybackSpeed = message:sub(7)
  84. end
  85. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement