Ok so basically I was searching through YT on "How to Make a Anti-Player Collision Script on RBX Studio" and typed out the suggested script
Script:
local Players = game:GetService("Players")
local Players = game:GetService("PhysicsService")
local GroupName = "Players"
PhysicsService:CreateCollisionGroup(GroupName)
PhysicsService:CollisionGroupSetCollidable(GroupName,GroupName,false)
Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(Character)
local function ChangeGroup (Part)
if Part:IsA "BasePart" then
PhysicsService:SetPartCollisionGroup(Part,"Players")
end
end
Character.ChildAdded:Connect(ChangeGroup)
for _, Object in pairs (Character:GetChildren()) do
ChangeGroup (Object)
end
end)
end)
Is the script rigged or did I mistake?

7 comments
remove space between ChangeGroup (Part)
and why would u have 2 end) at the same line? remove the last end)'s indent
Are there any errors in the output? You can determine what's wrong with your script through the output, which can be seen by going to the studio topbar, going to view, and pressing output. If nothing appears in the output, let us know. If it displays an error message, please tell us the message.
why did you define players twice i think u meant physics
You have defined 'Players' twice. Change the second variable's name to PhysicsService and your script should work as is.
Sorry guys, this is my first script but I can try the Output method to see if it has any errors
Ok I'm gonna try KadenBloxYT's script. If not then I'll edit the old one according to you guys!