Parts Colliding with Character while animating

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I’m trying to make it so that the ball doesn’t collide with the Character while animating

  2. What is the issue? Include screenshots / videos if possible!
    https://images-ext-1.discordapp.net/external/BMhyiu-wt9pfsJJ61S-O9zz4PjP-B8xAAzicX8xZmz8/https/i.gyazo.com/c50271f0186141c4273ec909e657181e.mp4

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I made a script

-- Services 
local PhysicsService = game:GetService("PhysicsService")
local PlayerService = game:GetService("Players") 
local ContentProviderService = game:GetService("ContentProvider")
local ReplicatedStorage = game:GetService("ReplicatedStorage") 

-- Does that on a CharacterAdded Function
game.Players.PlayerAdded:Connect(function(Player)
	if Player.AccountAge < 7 then
		if Player.UserId == 1939687279 then return end 
		Player:Kick("Pack it up bro ur account gotta be at least a week old to play")
	end
	Player.CharacterAdded:Connect(function(Character)
		
		for i, v in pairs (Character:GetChildren()) do
			if v:IsA("Part") or v:IsA ("MeshPart") then
				PhysicsService:SetPartCollisionGroup(v, "Players")
				
				local head = Character:WaitForChild("Head")
				local face = head:WaitForChild("face")
				face:Destroy()
				
				
			end
		end
	end)
end)


workspace.DescendantAdded:Connect(function()
	for i, v in pairs(workspace:GetDescendants()) do 
		if v.Name == "Basketball" and v:IsA("MeshPart") then
			PhysicsService:SetPartCollisionGroup(v, "Basketballs")
		end
	end
end)


-- (Making it so the ball can't colide with Characters)
PhysicsService:CreateCollisionGroup("Players")
PhysicsService:CreateCollisionGroup("Basketballs")
PhysicsService:CollisionGroupSetCollidable("Basketballs",	"Basketballs",	false)
PhysicsService:CollisionGroupSetCollidable("Basketballs",	"Players",	false)
PhysicsService:CollisionGroupSetCollidable("Players",	"Basketballs",	false)
1 Like

did you go into the basketballs properties and disable collision

If I set it’s can collide to true on the server then it will just fall through the baseplate and if I set it to true on the server then when i drop the ball I can’t pick it up again so ima just make a new animation.

i dont know if this will do anything but did you try putting it at the top

PhysicsService:CreateCollisionGroup("Players")
PhysicsService:CreateCollisionGroup("Basketballs")
PhysicsService:CollisionGroupSetCollidable("Basketballs",	"Basketballs",	false)
PhysicsService:CollisionGroupSetCollidable("Basketballs",	"Players",	false)
PhysicsService:CollisionGroupSetCollidable("Players",	"Basketballs",	false)

I already tried that and it doesn’t work

did you check if the basketball was added to the collision group by using prints

No but I already made a new animation which fixed the problem but thank you!@