Function return true/false, if function == true then

im confused why this isn’t working

local function PlayerCheck()
	if Character:FindFirstChild("Wand") then
		if Character.Humanoid.Health ~= 0 then
			return true
		end
	end
end
	if Message == "appa" then
		if PlayerCheck == true then
			CurrentSpells[1] = nil
			table.insert(CurrentSpells, AppaFunction)
		end	
	end
2 Likes

it’s PlayerCheck() == true, not PlayerCheck == true. You need to call PlayerCheck for it to return the value that you want it to return.

5 Likes