This is the code:
while wait(0.5) do
local players = game.Players:GetChildren()
for i, plr in ipairs(players) do
if plr:FindFirstChild("InSafezone") then
local shieldCheck = plr.Character:FindFirstChildOfClass("ForceField")
if plr.InSafezone.Value == true then
if not shieldCheck then
local shield = Instance.new("ForceField")
shield.Parent = plr.Character
end
else
if shieldCheck then
shieldCheck:Destroy()
end
end
end
end
end

1 comment
<3