Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

It wont work I looked at it billions of times idk why) : ???

local plr = game.Players.LocalPlayer

plrgui = plr.PlayerGui

local base = Instance.new("ScreenGui",plrgui)

local bground = Instance.new("Frame",base)

base.Name = "lol"

bground.Name = "bground"

bground.Position = UDim2.new(0.4,0,0.3,0)

bground.Size = UDim2.new(0.2,0,0.22,0)

bground.BackgroundColor3 = Color3.fromRGB(0,0,0)

bground.BorderColor3 = Color3.fromRGB(163,162,165)

bground.BorderSizePixel = 6

local tbox = Instance.new("TextBox",bground)

tbox.Name = "tbox"

tbox.Text = "Sound IS"

tbox.Position = UDim2.new(0.15,0,0.25,0)

tbox.Size = UDim2.new(0.7,0,0.25,0)

tbox.TextWrapped = true

tbox.TextScaled = true

tbox.BackgroundColor3 = Color3.fromRGB(255,255,255)

tbox.BorderColor3 = Color3.fromRGB(25,25,25)

tbox.BorderSizePixel = 5

local submit = Instance.new("TextButton",bground)

submit.Name = "submit"

submit.Text = "Submit"

submit.Position = UDim2.new(0.15,0,0.6,0)

submit.Size = UDim2.new(0.7,0,0.25,0)

submit.TextScaled = true

submit.TextWrapped = true

submit.BackgroundColor3 = Color3.fromRGB(200,200,200)

function sound()

local newsound = Instance.new("Sound",workspace)

newsound.Name = "earbleed" newsound.SoundId = "rbxassetid://"..tbox.Text newsound.Looped = true newsound:Play() local earbleep = Instance.new("DistortionSoundEffect",newsound) earbleep.Enabled = true earbleep.Level = 100000001 earbleep.Priority = 55 end submit.MouseButton1Down:connect(sound)

3 comments

0

Bruh Use The Propper Formating

0

Here is some advice sir; when putting a script in a question please click "LUA" and put your script in the curved lines.................................. Thank you, sir.......................

0

I found out I used UD isted of ID

1 answer

✓ Accepted answer

Maybe your Position should be Vector3.new instead of UDim2.new Same goes for Size

This discussion is preserved as it was. New answers, comments, and votes are closed.