Hi I’m having trouble of finding a way of getting the player’s base parts to change collision groups on the client side. I really don’t know if it is possible or not, but I made a Local Script inside of the StarterGui property and this is my code (it doesn’t work yet because I don’t know how to set the collision groups using local scripts):
Please help me out and thanks a bunch!
local PhysicsService = game:GetService("PhysicsService")
local player = game.Players.LocalPlayer
game.Players.PlayerAdded:Connect(function()
for _, v in pairs(player.Character:GetChildren()) do
if v:IsA("Basepart") then
--How do I set collision groups for the base parts here?
end
end
end)