Hello Developers,
I have a conveyer that moves parts. To prevent the parts flinging off the conveyer i want to make a barrier that only parts that can go through but the players can’t.
I’m sorry in advance if this is the wrong category!
Hello Developers,
I have a conveyer that moves parts. To prevent the parts flinging off the conveyer i want to make a barrier that only parts that can go through but the players can’t.
I’m sorry in advance if this is the wrong category!
You can create collision group for players and those parts and just make it so players cant collide with them, or if you really want a barrier you can create collisions for barrier, parts and players and make it so players can collide with the barrier and parts cant, alternatively you can just make barrier around parts and not go thru all the trouble of collisions.
you could just make a local script in a part that sets it position i think since the parts would go through due to the part not actualy being there server sided unlike for the player
--Physic service setup
local Physic = game:GetService("PhysicsService")
Physic:CreateCollisionGroup("ExampleGroup")
Physic:CollisionGroupSetCollidable("ExampleGroup","ExampleGroup",false)
--Set group to instance
Physic:SetPartCollisionGroup(Instance,"ExampleGroup")
This should work, now all you have to do is a little bit of editing to make this work with your script.