=========================
If that SetPartCollisionGroup & GetCollisionGroupName is supposed to be replaced with something else then please do let me know, I will do it quickly and show it here if there are any errors.
=========================
CreateCollisionGroup is deprecated
After pressing ctrl+shift+f I searched "CreateCollisionGroup " but I did not found it anywhere in any script.
But when I run a test play and searched " CreateCollisionGroup " then it did showed up in some script named " MainVariables " for few seconds and then the script was gone.
=========================
Some doubts:
Are these errors are affecting game in bad way?
=========================
As of now, not really. However, if Roblox decided to remove those functions (because they’re deprecated), it will cause errors to the script and the Collision Groups won’t work.
The deprecation warnings you’re encountering are due to Roblox updating its APIs over time. The deprecated functions are no longer recommended for use, and you should update your scripts to use the newer alternatives. Let’s address each of the points you mentioned:
SetPartCollisionGroup Deprecated: Instead of using SetPartCollisionGroup, you should use the Part:SetCollisionGroupId method. Here’s how you can modify your scripts:Script 1:
luaCopy code
-- Replace this line:
-- v.CollisionGroup = p
-- With this line:
v:SetCollisionGroupId(p)
2.Script 2:*
luaCopy code
-- Replace this line:
-- group = p:GetCollisionGroupName()
-- With this line:
group = p:GetCollisionGroupId()
GetCollisionGroupName Deprecated: You’re already using the correct method to get the collision group name, which is GetCollisionGroupId. However, you’re storing the group name in the group variable, so make sure you’re using this variable correctly later in your code.
CreateCollisionGroup Deprecated:CreateCollisionGroup is deprecated, and you shouldn’t use it. Instead, use PhysicsService:CreateCollisionGroup to create collision groups. Here’s how you can create a new collision group:
luaCopy code
local collisionGroupId = game:GetService("PhysicsService"):CreateCollisionGroup("GroupName")
Make sure to replace "GroupName" with the desired name for your collision group.
These deprecation warnings are important to address, as using deprecated functions may result in issues or unpredictable behavior as Roblox updates its systems. While the warnings themselves might not directly impact the functionality of your game at the moment, it’s a good practice to update your scripts to use the latest and recommended methods to ensure your game remains stable and compatible with future updates.