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
There's not Touched event to allow the function to Run, write this to solve your issue
local IsInMatch = game.Players.LocalPlayer.IsInMatch function OnTouch(part) IsInMatch.Value = true end local Spawn = script:FindFirstAncestor("Spawn") Spawn.Touched:Connect(function(hit) if (hit ~= nil) then OnTouch(Spawn) end end)