View difference between Paste ID: fF628zL9 and z7meD2wT
SHOW: | | - or go back to the newest paste.
1
local sound = Instance.new("Sound",script.Parent)
2
sound.Volume=1
3
sound.Pitch=1
4
sound.Name=""
5
sound.Looped=true
6
sound.PlayOnRemove=false
7
local player = game.Players.LocalPlayer
8
local Format = "http://www.roblox.com/asset/?id=##ID##"
9
local frame = script.Parent:WaitForChild("Frame")
10
11
frame:WaitForChild("Play").MouseButton1Click:connect(function()
12
	local input = tonumber(frame:WaitForChild("Input").Text)
13
	if input then
14
		sound:Stop()
15-
		sound.SoundId=Format:gsub("##ID##", tostring(input))
15+
		sound.SoundId=Format:gsub("192885623", tostring(input))
16
		sound:Play()
17
	end
18
end)
19
frame:WaitForChild("Stop").MouseButton1Click:connect(function()
20
	sound:Stop()
21
end)