Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- brick = Instance.new("Part", game.Players.LocalPlayer.Character)
- brick.Material = "Foil"
- brick.CanCollide = false
- brick.Size = Vector3.new(1,1,1)
- brick.CanCollide = false
- brick:BreakJoints()
- local bodypos = Instance.new("BodyPosition", brick)
- bodypos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- bodypos.Position = game.Players.LocalPlayer.Character.Head.Position + Vector3.new(0,20,0)
- local angvel = Instance.new("BodyAngularVelocity", brick)
- --angvel.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
- angvel.AngularVelocity = Vector3.new(1,1,1)
- scr = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
- txt = Instance.new("TextBox", scr)
- txt.Text = "Music ID Here"
- txt.Position = UDim2.new(0, 350 , 0, 150)
- canuse = true
- txt.Size = UDim2.new(0, 250 , 0, 50)
- mouse = game.Players.LocalPlayer:GetMouse()
- function kys(key)
- key = key:lower()
- if key:byte() == 13 and canuse then
- canuse = false
- local id = game.Players:findFirstChild(txt.Text)
- local moosic = Instance.new("Sound", brick)
- moosic:Play()
- moosic.Volume = 3
- moosic.SoundId = "rbxassetid://"..txt.Text
- scr:destroy()
- local freq = 30
- local recorndownsc = 100
- moosic.Looped = true
- while true do
- bodypos.Position = game.Players.LocalPlayer.Character.Head.Position + Vector3.new(0,6,0)
- angvel.AngularVelocity = Vector3.new(moosic.PlaybackLoudness/50,moosic.PlaybackLoudness/50,moosic.PlaybackLoudness/50)
- brick.Size = Vector3.new(moosic.PlaybackLoudness/80,moosic.PlaybackLoudness/80,moosic.PlaybackLoudness/80)
- game:GetService("RunService").RenderStepped:wait()
- end
- end
- end
- mouse.KeyDown:connect(kys)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement