Hello i'm making a horror game and i have a monster that needs to be in it.
I came up with that when u touch a block the monster appears for 0.2 seconds (or something) then becomes invisible.
I'm no good scripter so for any good scripters this code is like weird, but can anyone fix this for me?
Monster1 = script.Parent function getSpooky() Monster1.Transparency = 1 wait(0.2) Monster1.Transparency = 0 end MonsterShown.Touched:connect(getSpooky)
You have the transparency messed up. 0 = visible 1 = invisible
Use this:
Monster1 = script.Parent function getSpooky() Monster1.Transparency = 0 wait(0.2) Monster1.Transparency = 1 end MonsterShown.Touched:connect(getSpooky)
Also make sure the monster itself is invisible in the game.