If someone resets while having a ForceField the code will get a error and not work. How would I go about solving this issue.
local players = game.Players:GetChildren()
for i, plr in ipairs(players) do
local shieldCheck = plr.Character:FindFirstChildOfClass("ForceField")
shieldCheck:Destroy()
Error I am getting: ServerScriptService.mainscript:58: attempt to index local 'shieldCheck' (a nil value)

2 comments
Check if shieldCheck exists before attempting to call :Destroy() on it. FindFirstChildOfClass will return nil if it cannot find the class it was fed.
Thanks! I knew it was something simple like that.