players.PlayerAdded:Connect(function(plr)
local LastGrabbed = grabTag:Clone()
LastGrabbed.Parent = plr
plr.CharacterAdded:Connect(function(char)
while true do
CheckVoid(plr, LastGrabbed.Value)
wait()
-- if player has left: break loop
end
end)
end)
Is there a way of checking if a player has left without using Players.PlayerRemoving? I’m sorry if this is a dumb question but googling it came up with no results.
darn, what do you think I can do then? I can’t leave the while loop to keep looping even after the player has left cause I’m pretty sure that can cause lag.
It’s better to tell us your problem. Not how you’re trying to achieve it and come up with solution. Tell us your problem and we might find alternatives.