I made a code that when the player touches the seat part the objective should switch but somehow no error shows and the code is also not executing. Heres the script: local Trigger = script.Parent
Trigger.Touched:Connect(function(hit)
for i,plr in pairs(game.Players:GetChildren()) do
if plr:IsA("Player") then
local plrgui = plr.PlayerGui
plrgui.Objective.TextUI.Text = "Objective: Look what happend"
end
end
end)