Team change GUI camera manipulation problems makes the game UNPLAYABLE

Yeah thats what i was going to do

Aight, i guess you should stay with the nil only:

local plr = game.Players.LocalPlayer

if plr.Team == nil then
    --insert code here.
end

I used this but sadly it didn’t work (and there were no errors)

local plr = game.Players.LocalPlayer

if plr.Team == nil then
    script.Disabled = false
else
	script.Disabled = true
end

I know im probably missing something obvious here

What you would want to do in this case is (in the camera script)

local plr = game.Players.LocalPlayer
if plr.Team == nil then
	--camera code
end

Put all of the code in the camera script into where the comment is and then it should work.

It works thankyou so much guys! Is there anything I could do in return?

1 Like