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

How would I make a jumpscare after a period of time?

I have a screen GUI in starter GUI that I want to appear after a period of time. How would I make it? This is the script I currently have:

repeat wait() until game.Players.LocalPlayer.Character
wait (29)
script.Parent.Parent.ImageLabel.Visible = true

(im bad at scripting) (the local script is in the screen GUI)

6 comments

0

Tell me what's wrong with it.

0

its not working, and i dont know which line the error is on

0

Is the script IN the image/frame itself?

0

no, it is in the screen gui

0

The script should go to the frame/image

0

oh

3 answers

✓ Accepted answer

It should be a local script within the frame/imagelabel. Your script seems a bit off, but try this instead.

script.Parent.Visible = false --it's invisable
wait(30) --seconds it stays invisable, go ahead and change it
script.Parent.Visible = true --makes it visable
wait(10) --how long it stays visable                       
script.Parent.Visible = false --makes it invisable again

Place this script in the localscript in your Image label instead. If this works, please accept this as the answer and upvote.

4 comments

0

If you have any questions, ask in the comment.

0

Maybe trying doing

0

works ty

0

Np! :)

Just add the sound to it. Leave comments if you have questions?

1 comment

0

wdym sound

try doing

while wait(math.random(30, 20)) do

scrtipt.Parent.Parent.ImageLabel = true

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