Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Parent = game.Players.MrEnderJG.Character
- local c = Instance.new("ScreenGui")
- local b = Instance.new("TextBox")
- local e = Instance.new("TextButton")
- local char = script.Parent
- local player = game.Players:GetPlayerFromCharacter(char)
- c.Parent = player.PlayerGui
- b.Parent = c
- b.Position = UDim2.new(0,50,0,300)
- b.Size = UDim2.new(0,10,0,10)
- e.Parent = c
- e.Position = UDim2.new(0,50,0,350)
- e.Size = UDim2.new(0,10,0,10)
- function button(a)
- local h = game.Workspace:GetChildren()
- for i=1, #h do
- if h[i].ClassName == "Sound" then
- h[i]:Remove()
- end
- end
- local s = Instance.new("Sound")
- s.Parent = game.Workspace
- s.Name = "WorkSound"
- s.Looped = true
- s.SoundId = "rbxassetid://"..b.Text
- s:Play()
- end
- e.MouseButton1Down:connect(button)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement