Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 stipb = Instance.new("TextBox",frame)
- stipb.BackgroundColor3 = Color3.new(0,0,127/255)
- stipb.BorderColor3 = Color3.new(0,0,0)
- stipb.BorderSizePixel = 2
- stipb:TweenSize(UDim2.new(.5,0,.25,0),"Out","Quad",1,true)
- stipb.Position = UDim2.new(.25,0,.3,0)
- stipb.Text = "SoundId"
- stipb.TextColor3 = Color3.new(255,255,255)
- stipb.TextScaled = true
- local label = Instance.new("TextLabel",frame)
- label.Text = "Made by Nuberzzz"
- label.TextScaled = true
- label:TweenSize(UDim2.new(1,0,.2,0))
- label.TextColor3 = Color3.new(255,255,255)
- label.BackgroundTransparency = 1
- --stipb.Size = UDim2.new(1,0,.2,0)
- 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)
- 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