Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a part cancolide with certain people?

Asked by 5 years ago

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.

1 answer

Log in to vote
0
Answered by 5 years ago

Local Script

points.Changed:Connect(function()
    If points.Value >= 5 then
        part.CanCollide = false
    end
end)
1
Shouldn't be done on the client. DeceptiveCaster 3761 — 5y
0
^ Technically, if it's FilterEnabled, it should be done either via Client or CollisionGroups, he is right. pwx 1581 — 5y
0
Most of the games are FE nowadays, performing this on client is will be way easier for him to understand. Headstackk 45 — 5y
Ad

Answer this question