When a player walks over a spawn it sets a bool value (IsInMatch) to false. When the bool value is set to true the GUI is Invisible, but when the boolvalue is false the GUI is visible. Although, that's not the problem. the problem is that when I walk over my spawn, it won't change the value of the boolvalue, hence letting the GUI not disappear.
here is the local script inside the spawn:
local IsInMatch = game.Players.LocalPlayer.IsInMatch
function OnTouch(part)
IsInMatch.Value = true
end

7 comments
you can only use: if hit then
works perfectly fine
The value doesn't change.
What do you want to do change to?
If false then why are you saying true in the OnTouched function, change to false
I switched it to false, still doesn't work. My game is filtering enabled and the script inside the spawn is a local script.
Oh, no don’t be using a LocalScript!! They only run inside PlayerObjects, change it to a ServerScript