local c = player.Character or player.CharacterAdded:Wait()
And in other similar cases there’s the or
operator so what does this variable actually mean
local c = player.Character or player.CharacterAdded:Wait()
And in other similar cases there’s the or
operator so what does this variable actually mean
if player.Character
returns nil, then instead do player.CharacterAdded:Wait()
(wait until the character is added)
Or simply means:
if A = B or C = D then
If either statement is true then it’ll do the following lines of the script up to the end
<Control Structures | Roblox Creator Documentation