I really need help on making a collision group with Players and a soccer ball, What I’ve tried didnt work, The collisions arent working and im really stuck. Maybe somethings wrong with the collision settings, Though help would be great!
Heres my script
char = game.Players.LocalPlayer.Character
char.RightFoot.CollisionGroupId = 2
char.LeftFoot.CollisionGroupId = 2
char.RightLowerLeg.CollisionGroupId = 2
char.LeftLowerLeg.CollisionGroupId = 2
char.RightUpperLeg.CollisionGroupId = 2
char.LeftUpperLeg.CollisionGroupId = 2
char.LowerTorso.CollisionGroupId = 2
char.UpperTorso.CollisionGroupId = 2
char.Head.CollisionGroupId = 2
char.LeftHand.CollisionGroupId = 2
char.RightHand.CollisionGroupId = 2
char.LeftLowerArm.CollisionGroupId = 2
char.RightLowerArm.CollisionGroupId = 2
char.LeftUpperArm.CollisionGroupId = 2
char.RightUpperArm.CollisionGroupId = 2
char.HumanoidRootPart.CollisionGroupId = 2
workspace.Ball.CollisionGroupId = 2
Its in a LocalScript in StarterCharacterScripts, is something wrong here?
Please move this topic to #help-and-feedback:scripting-support.
We can’t give any help further if you don’t provide us with details. There are tutorials on YouTube and the DevHub which could help you.
1 Like
ok I have a script that changes the players collisions but It isnt working, Is my Script wrong?
I have no idea if your script is wrong if I don’t know what your script is. Basically the character would collide with the world, the hammer with the world, but the character won’t collide with the hammer.
Yes, and thats what I thought would Happen But I still collide with that part.
The Hammer? Try changing the hammer’s and map’s collision type to 3.
but that part is supposed to be unanchored, its a Ball
Wait wait wait, I’m confused between topics, would you mind giving a video of the “ball”?
Its just an unanchored Shpere that players move around
And do you collide with the ball? If not, is CanCollide on?
your sopposed to move it in the net, but if i make cancollide disabled the the ball would fall through the ground
So you collide with the ball? Is that what you want? What is not working?
Is the ball unanchored? maybe you should try that
when you touch the ball it kicks like a touch soccer ball and the player glitches and autojumpes when he kicks the ball
yes the ball is unanchored
Could you try sending a video of the issue?
ok I will try and send a video about that
robloxapp-20220817-1137287.wmv (3.6 MB)
that first kick glitches, and it glitches even more when you play with a friend
whoops i made it a download file
That’s because that’s how Roblox handles physics, try to disable jumping when touching the ball.
ok,I get it but how would i do that?
Setting Humanoid.JumpPower
to 0 while JumpPower
property in StarterPlayer is enabled should work.