I want a script that could if i were to have a certain value example 5 points or more a part to me is cancollide bit to those with less then 5 points cant go through.i dont want it to to be colideble for a second then not if its possible it just turns cancollideable off for me sorry my for my grammer i am using phone.
COMMUNITY QUESTION
How to make a part cancolide with certain people?
1 answer
Local Script
points.Changed:Connect(function()
If points.Value >= 5 then
part.CanCollide = false
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Shouldn't be done on the client.
^ Technically, if it's FilterEnabled, it should be done either via Client or CollisionGroups, he is right.
Most of the games are FE nowadays, performing this on client is will be way easier for him to understand.