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
4 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:

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)

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

3 answers

Log in to vote
0
Answered by 4 years ago

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.

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

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

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

try doing

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

scrtipt.Parent.Parent.ImageLabel = true

Answer this question