-
What do you want to achieve? Someone made me a cannon script, and it keeps saying this error?
-
What is the issue? The error of “Collision group does not exist” ON LINE 10 (PlayerCollision part)
-
What solutions have you tried so far? Everything almost!
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
1 script.Parent.Main.ClickDetector.MouseClick:Connect(function(Player)
2 if Debounce == false then
3 Debounce = true
4
5 local Character = Player.Character
6 local HumanoidRootPart = Player.Character.HumanoidRootPart
7
8 for _,v in pairs(Character:GetChildren()) do
9 if v:IsA("Part") or v:IsA("MeshPart") then
10 PhysicsService:SetPartCollisionGroup(v, PlayerCollision) -- Line the Error is happening on
11 v.Transparency = 1
12 elseif v:IsA("Accessory") then
13 v.Handle.Transparency = 1
14 end
15 end
16
17 Character.Head.face.Transparency = 1
18
19 -- Changes position
20 Character.Humanoid.PlatformStand = true
21 local BodyVelocity = Instance.new("BodyVelocity", Character.HumanoidRootPart)
22 HumanoidRootPart.Anchored = true
23 BodyVelocity.Velocity = Vector3.new(0,0,0)
24 HumanoidRootPart.CFrame = Face.CFrame
25 HumanoidRootPart.Orientation = Face.Orientation - Vector3.new(80,0,0)
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.