if char:FindFirstChild("ForceField") then
how do i make this negative? for example:
if char:FindFirstChild("ForceField") == false then
if char:FindFirstChild("ForceField") then
how do i make this negative? for example:
if char:FindFirstChild("ForceField") == false then
Just type "not" after if
if not char:FindFirstChild("ForceField") then
^^
tried already and it doesn't work because findfirstchild returns nil
not (nil) evaluates to true in lua 5.3.4! And in ROBLOX Studio! @Elixcore please re-examine your logic in your code. if not char:FFC("Forcefield") then WILL run if Forcefield does NOT exist. If it is not running the code in the if statement then child ForceField exists.
If the forcefield is nil then
if char:FindFirstChild("ForceField") == nil then
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
i dont understand what you are you asking how to disable force feild
no, is there a way to say for example: if you don't find a forcefield then do this