i have made a obby game so under screen gui i added a text button but it does not work its a local script.
what i tried was :-
local reset = script.Parent:WaitForChild("Reset")
reset.MouseButton1Click:Connect(function(player) player.Team = game.Teams.Stage1 end)