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)

2 comments

0

end) and stage 1 are at different lines

0

use the lua button.