I have a part which upholds a moving part. Problem is if I turn the collisions on the part, the moving part just falls. Yet, if I turn the collisions on, people can just walk on it and skip the lobby. How do I make it so that players cannot walk on it yet the moving part doesn't fall? Anchoring the moving part means the moving part stays still, so that's not a solution.
you would have to use the PhysicsService
.. The service allows you to place Baseparts
and models in a collision group
, then you could set weather or not parts in a certain collision group can collide with parts in another collision group..
Insert this into workspace
01 | local part 1 = workspace.Part 1 --example |
02 | local part 2 = workspace.Part 2 --example |
03 |
04 | function touch(hit) |
05 | if game.Players:GetPlayerFromCharacter(hit.Parent) then |
06 | part 1. CanCollide = false |
07 | else |
08 | part 1. CanCollide = true |
09 | end |
10 | end |
11 |
12 | function touch 2 (hit) |
13 | if game.Players:GetPlayerFromCharacter(hit.Parent) then |
14 | part 2. CanCollide = false |
15 | else |