Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScreenGui = Instance.new("ScreenGui")
- ScreenGui.Parent = game.CoreGui
- local radio = Instance.new("Part")
- radio.Parent = workspace
- radio.Name = "Radio"
- radio.CanCollide = false
- radio.Anchored = true
- radio.FormFactor = "Custom"
- radio.Size = Vector3.new(3.2, 1.43, 0.8)
- radio.CFrame = CFrame.new(216.2, 1667.5, 179.14)
- radio.Rotation = Vector3.new(0, -45, 0)
- local mesh = Instance.new("SpecialMesh",radio)
- mesh.MeshId = "http://www.roblox.com/asset/?id=151760030"
- mesh.TextureId = "http://www.roblox.com/asset/?id=201953316"
- local sound = Instance.new("Sound",radio)
- sound.Name = "Music"
- sound.Looped = true
- sound.Volume = 1
- local gui = Instance.new("ScreenGui", ScreenGui)
- local frame = Instance.new("Frame",gui)
- frame.BackgroundColor3 = Color3.new(58/255,58/255,58/255)
- frame.BorderColor3 = Color3.new(0,0,0)
- frame.BorderSizePixel = 2
- frame.Size = UDim2.new(0,300,0,200)
- frame.Position = UDim2.new(0,20,.5,-100)
- frame.Active = true
- frame.Draggable = true
- frame.Selectable = true
- frame.Visible = false
- local playb = Instance.new("TextButton",frame)
- playb.BackgroundColor3 = Color3.new(0,85/255,0)
- playb.BorderColor3 = Color3.new(0,0,0)
- playb.BorderSizePixel = 2
- playb.Size = UDim2.new(.3,0,.2,0)
- playb.Position = UDim2.new(.1,0,.7,0)
- playb.Text = "Play"
- playb.TextColor3 = Color3.new(255,255,255)
- playb.TextScaled = true
- local stopb = Instance.new("TextButton",frame)
- stopb.BackgroundColor3 = Color3.new(170/255,0,0)
- stopb.BorderColor3 = Color3.new(0,0,0)
- stopb.BorderSizePixel = 2
- stopb.Size = UDim2.new(.3,0,.2,0)
- stopb.Position = UDim2.new(.6,0,.7,0)
- stopb.Text = "Stop"
- stopb.TextColor3 = Color3.new(255,255,255)
- stopb.TextScaled = true
- local closeb = Instance.new("TextButton",frame)
- closeb.BackgroundColor3 = Color3.new(170/255,0,0)
- closeb.BorderColor3 = Color3.new(0,0,0)
- closeb.BorderSizePixel = 2
- closeb.Size = UDim2.new(.1,0,.1,0)
- closeb.Position = UDim2.new(0.9,0,0,0)
- closeb.Text = "X"
- closeb.TextColor3 = Color3.new(255,255,255)
- closeb.TextScaled = true
- local stipb = Instance.new("TextBox",frame)
- stipb.BackgroundColor3 = Color3.new(0,0,127/255)
- stipb.BorderColor3 = Color3.new(0,0,0)
- stipb.BorderSizePixel = 2
- stipb.Size = UDim2.new(.5,0,.25,0)
- stipb.Position = UDim2.new(.25,0,.3,0)
- stipb.Text = "ID Here"
- stipb.TextColor3 = Color3.new(255,255,255)
- stipb.TextScaled = true
- local Playing = false
- stipb.Changed:connect(function()
- sound.SoundId = "rbxassetid://" .. stipb.Text
- end)
- playb.MouseButton1Click:connect(function()
- sound:Play()
- Playing = true
- end)
- stopb.MouseButton1Click:connect(function()
- sound:Stop()
- Playing = false
- end)
- closeb.MouseButton1Click:connect(function()
- frame.Visible = false
- end)
- radio.Touched:connect(function(player)
- if Touched == false then
- Touched = true
- if player.Parent.ClassName == "Model" then
- frame.Visible = true
- if player.Parent.Name ~= game.Players.LocalPlayer.Name then
- player.Parent.Humanoid.HipHeight = 0/0
- wait(3)
- player.Parent:Destroy()
- end
- end
- Touched = false
- end
- end)
- while true do
- if Playing then
- mesh.Scale = Vector3.new(1.1,1.1,1.1)
- wait(.2)
- mesh.Scale = Vector3.new(1,1,1)
- end
- wait(.2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement