You can write your topic however you want, but you need to answer these questions:
-
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 -
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 -
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)