Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
enboh 2
5 years ago

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:

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

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

0
Tell me what's wrong with it. TheJellyNinja_XD13 62 — 5y
0
its not working, and i dont know which line the error is on enboh 2 — 5y
0
Is the script IN the image/frame itself? Aprilsaurus 48 — 5y
0
no, it is in the screen gui enboh 2 — 5y
View all comments (2 more)
0
The script should go to the frame/image Aprilsaurus 48 — 5y
0
oh enboh 2 — 5y

3 answers

Log in to vote
0
Answered by 5 years ago

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

1script.Parent.Visible = false --it's invisable
2wait(30) --seconds it stays invisable, go ahead and change it
3script.Parent.Visible = true --makes it visable
4wait(10) --how long it stays visable                      
5script.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.

0
If you have any questions, ask in the comment. Aprilsaurus 48 — 5y
0
Maybe trying doing speakerlogin 5 — 5y
0
works ty enboh 2 — 5y
0
Np! :) Aprilsaurus 48 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

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

0
wdym sound enboh 2 — 5y
Log in to vote
0
Answered by 5 years ago

try doing

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

scrtipt.Parent.Parent.ImageLabel = true

Answer this question