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

Why does the "=" have a syntax error? Trying to prove that turkey is superior to MONKE

local turkey = 420
local monkey = 69
function question()
	print("Does turkey = monkey")
end
if turkey = monkey then
	print(yes)
else
	print(no)
end

1 answer

use == instead of = because = is just to set stuff like

local monkey = 123
local turkey = 31

monkey = turkey will set monkey to 31 == in the other hand is an math operation(not quite) and is used to compare, there are others like ~= for checking if 2 values is different

1 comment

0

I recommend you look at the operators you can use to add on

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