Hello! FNAF 1 has an Easter egg with a golden Freddy. I made it so that if a player receives an Easter egg, then the golden Freddy teleports to the office, in order to drive him away, you need to open the tablet and it instantly disappears, and if you don’t open it and wait 10 seconds, then Freddy jumpscares you. But my script doesn’t work the way I wanted: if you open the tablet and wait 10 seconds, then it will disappear. And so if you don’t open it, you will die.
Script:
script.Parent.Touched:Connect(function(hit)
if hit.Parent.Name == "Golden_Freddy" and hit.Parent:FindFirstChild("ColdBloodedKiller") then
if game.Workspace.MonitorOpening.Checking.Value == false then -- I'm made so that the player does not die when Freddy is in the office while he is sitting on the cameras, only when he removes the tablet that Freddy can harm.
wait(10)
if game.Workspace.MonitorOpening.Checking.Value == true then
game.Workspace.Golden_Freddy:SetPrimaryPartCFrame(game.Workspace.GoldenFreddy["W0"].CFrame)
else
game.Workspace.Jumpscare:Play()
end
end
end
end)