Well I'm making this staircase game, You just climb a bunch of steps and get jumpscared along the way. I made a Instance.new script that makes a ScreenGui and a Textbutton and a ImageButton and a sound that plays a scream. But nothing happens!
Here's the script.
function onTouched()
skull = Instance.new("ScreenGui")
skull.Parent = game.StarterGui
tb = Instance.new("TextButton")
tb.Size = UDim2.new(0, 1920, 0, 843)
tb.Parent = skull
image = Instance.new("ImageButton")
image.Image = "http://www.roblox.com/asset/?id=24064946"
image.Parent = tb
image.Size = UDim2.new(0, 1920, 0, 843)
scream = Instance.new("Sound", game.Workspace)
scream.SoundId = 266075228
wait(2)
skull:Destroy()
end
script.Parent.Touched:connect(onTouched)
I have no idea what's wrong, I'm a Beginner scripter. Thanks again,
-Lukeisbossman64

3 comments
Ok, thanks, Let me see if this works.
Does not work. Sorry.
Edited.