[problem solved]

ive been trying to make a scary pop-ups for my horror game, anyone knows why they wont pop up on the screen?

while true do
	local waitTime = math.random(10,20)
	wait(waitTime)
	local number = math.random(1,2)
	game.StarterGui:FindFirstChild("Screamer"..number).Enabled = true
	wait(0.15)
	game.StarterGui:FindFirstChild("Screamer"..number).Enabled = false
end

image

1 Like

i had to put the script in the startergui, not serverscriptstorage, sorry my bad

1 Like

You might still have an issue. game.StarterGui is just a global container for the GUIs that get loaded into the player’s PlayerGui when the player joins the game. Manipulating the instances inside StarterGui won’t sync to every player’s PlayerGui. Player.PlayerGui is what you would want to work with instead.

Since this is a LocalScript located inside StarterGui, then in that context script.Parent would be the PlayerGui.