Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Got a problem with if statements, any help?

ok so here is my code, if statements are kinda weird, it is the "=" (in the if statement) is not correct

local team = game.Players.LocalPlayer.Team
local bigfoot = game.Teams.Bigfoot
local player = game.Players.LocalPlayer
if team = bigfoot then
	
end

2 answers

✓ Accepted answer

Make sure you add 2 equals when using if statements at line 4 And I suggest doing more research before commenting.

if team == bigfoot

1 comment

0

thanks!

You do not use = to compare, you use ==, remember that you use = to set value (or something) and you use == to compare, like: if a == b then

This discussion is preserved as it was. New answers, comments, and votes are closed.