So I have a parkour game and I want to do a small Halloween event. The idea is when a player clicks the event button a pumpkin is placed on their head and their view is locked to 0. The player goes on the course and does his run. If the player touches the "Failed" block the pumpkin goes away and the main GUI becomes visible. Then he is able to zoom in and out. However, the problem with that is when a player jumps on a moving obstacle and the obstacle falls down, that part of the obstacle touches the "Failed" and it makes the Pumpkin invisible even though the player never failed. How can I make it so that it runs the Failed function only when PLAYER touches FAILED, not when any other BLOCK touches FAILED.
failed.Touched:connect(function()
pumpk.Visible = false
holder.Visible = true
player.CameraMaxZoomDistance = 20
player.CameraMinZoomDistance = 0
end)
