wait(0.1)
local Playing = game.Teams.Playing
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local ForceField = player.Character.forcefield
if player.Team == Playing then
ForceField:Destroy()
end
end)
end)
local Playing = game.Teams.Playing
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local ForceField = character:FindFirstChildOfClass("ForceField")
if player.Team == Playing and ForceField then
ForceField:Destroy()
end
end)
end)
wait(0.1)
local Playing = game.Teams.Playing
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
player:GetPropertyChangedSignal("Team"):Connect(function()
if player.Team == Playing then
for _, item in pairs(player.Character:GetChildren()) do
if item:IsA("ForceField") then
item:Destroy()
end
end
end
end)
end)
end)
I’ve fixed the problem by looping the scripting and re scripting it to be client sided inside player scripts, but it keeps cloning but i cant figure out any way to fix it, any suggestions?