Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Doesnt remove forcefield. Why? Help please?

script.Parent.Touched:connect(function(hit)
hit.CharacterAdded:connect(function(chr)
	while chr:FindFirstChid("ForceField") ~= nil do wait() end
	local ff = chr:FindFirstChild("ForceField")
	ff:Remove()
	end)
end)

1 answer

✓ Accepted answer
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") ~= nil then
player = hit.Parent
if player:FindFindFirstChild("ForceField") ~= nil
then
player:FindFindFirstChild("ForceField") :remove()
end
end
end)


This discussion is preserved as it was. New answers, comments, and votes are closed.