Which one is faster?
Variable Method
local Can = false
BaseValue Method
local Can = script:WaitForChild("Can").Value
Variable Method
local Can = false
BaseValue Method
local Can = script:WaitForChild("Can").Value
WaitForChild
is slower than just the variable.
Source: FindFirstChild and WaitForChild: Addressing common bad practices and habits of each
The First Variable Method is faster and used only in one script.
The Second Method is used when multiple scripts need to access the same variable