I was wondering if anyone can tell me what I'm doing wrong as why A
is working and B
isn't? Sorry it's kinda hard for me to explain it. ._.
Script that works(A):
print(game.Workspace.FilteringEnabled)
Script that doesn't work(B):
print("FilteringEnabled: "..game.Workspace.FilteringEnabled)
Any help appreciated.
local filtBool = game.Workspace.FilteringEnabled -- Get the value of 'game.Workspace.FilteringEnabled' if filtBool then -- 'if filtBool == true then' filtBool = "true" elseif not filtBool then -- 'if filtBool == false then' filtBool = "false" end print("FolteringEnabled: " .. filtBool")
Bools can't be concatenated. Only numbers and strings. Sorry fam.