Im working on the physics for my soccer/football game and ive got stuff like shooting and dribbling down already, the one issue i have is the ball physics. I decided to switch from the ball and players not being able to collide to trying to want another system after playing MPS Futsal.
things ive tried: meh tried giving net ownership to whoever is the current owner of the ball/current carrier and it kind of just broke everything else do to with velocity like shooting etc and did not give me the sort of control i want
im a decent scripter but for some reason i cant wrap my head around how i would achieve this. no need to write out script for me just explain what i have to do. thank you
Is making the player’s max slope angle zero an option?
Or you could try making the ball not collidable with the player character, then making an invisible cylinder that’s welded to the player that only the ball collides with.
Are you sure colliding the ball and character won’t work? It appears that you added a system for kicking the ball when the character touches the ball. A collision group between the character and the ball would make the player enter the ball, but the touch function would still function, firing the shooting function automatically.
local player = game.Players.LocalPlayer
local character = script.Parent
local humanoid = character:WaitForChild("Humanoid")
humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing, false) -- We make the player not be able to climb
character.HumanoidRootPart.CollisionGroup = "Character" -- and we make the character a different collisiongroup
for i, Limbs in pairs(character:GetChildren()) do
if Limbs:IsA("BasePart") and Limbs.Name ~= "Head" then
Limbs.CustomPhysicalProperties = PhysicalProperties.new(0.7, 0.3, 0, 1, 100) -- we set the limbs to a different physical Property
As a result, the ball should no longer fling and should be smooth to play with.
Add a little force every time the character hits and it should work very smoothly!
I really appreciate all the help your giving me.
But ive already achieved this. I already have collision groups set up for the ball like you mentioned, and ive gotten to the same effect like in ur video but it still isnt the desired effect like in the gif at the start of the thread.
I have achieved something similar by using constraints. Making a cylinder that can ONLY collide with the character parts and connect it with a ball/socket to the ball itself. Add a alignrotation to keep it upright. Also maybe make it massless. Just a round wall around the ball that goes a few studs up. Just got to remember to account for the collision groups with rays, touches, and such.