Advertisement
tripono

2

Jul 29th, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. brick = Instance.new("Part", game.Players.LocalPlayer.Character)
  2. brick.Material = "Foil"
  3. brick.CanCollide = false
  4. brick.Size = Vector3.new(1,1,1)
  5. brick.CanCollide = false
  6. brick:BreakJoints()
  7. local bodypos = Instance.new("BodyPosition", brick)
  8. bodypos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  9. bodypos.Position = game.Players.LocalPlayer.Character.Head.Position + Vector3.new(0,20,0)
  10. local angvel = Instance.new("BodyAngularVelocity", brick)
  11. --angvel.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  12. angvel.AngularVelocity = Vector3.new(1,1,1)
  13. scr = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
  14. txt = Instance.new("TextBox", scr)
  15. txt.Text = "Music ID Here"
  16. txt.Position = UDim2.new(0, 350 , 0, 150)
  17. canuse = true
  18. txt.Size = UDim2.new(0, 250 , 0, 50)
  19. mouse = game.Players.LocalPlayer:GetMouse()
  20. function kys(key)
  21. key = key:lower()
  22. if key:byte() == 13 and canuse then
  23. canuse = false
  24. local id = game.Players:findFirstChild(txt.Text)
  25. local moosic = Instance.new("Sound", brick)
  26. moosic:Play()
  27. moosic.Volume = 3
  28. moosic.SoundId = "rbxassetid://"..txt.Text
  29. scr:destroy()
  30. local freq = 30
  31. local recorndownsc = 100
  32. moosic.Looped = true
  33. while true do
  34. bodypos.Position = game.Players.LocalPlayer.Character.Head.Position + Vector3.new(0,6,0)
  35. angvel.AngularVelocity = Vector3.new(moosic.PlaybackLoudness/50,moosic.PlaybackLoudness/50,moosic.PlaybackLoudness/50)
  36. brick.Size = Vector3.new(moosic.PlaybackLoudness/80,moosic.PlaybackLoudness/80,moosic.PlaybackLoudness/80)
  37. game:GetService("RunService").RenderStepped:wait()
  38. end
  39. end
  40. end
  41. mouse.KeyDown:connect(kys)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement