I have made a script that sets the player’s collision group when they join, but it does not change anything. any way to fix this? (sorry for weird looking script, I did it in a rush)
game.Players.PlayerAdded:Connect(function(plr)
local chr = plr.CharacterAdded:Wait()
repeat
for i,v in pairs(chr:GetChildren()) do
if v:IsA("BasePart") or v:IsA("Part") then
v.CollisionGroup = "Player"
end
end
until plr.Torso.CollisionGroup == "Player"
end)
this is the script, also nothing pops up in output