so im trying to fix a hitbox error and this is my code
local Players = game:GetService("Players")
local plr = workspace.Player
Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
Character.Parent = plr
end)
end)
im trying to set it to a script that disables hitboxes and this is the code
local PhysicsService = game:GetService("PhysicsService")
PhysicsService:CollisionGroupSetCollidable("Player","Mob",false)
the folder for player is in workspace and mob is in serverstorage i dont knwo if that helps but im so lost rn