Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make a part cancolide with certain people?

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

Local Script

points.Changed:Connect(function()
	If points.Value >= 5 then
		part.CanCollide = false
	end
end)

3 comments

1

Shouldn't be done on the client.

0

^ Technically, if it's FilterEnabled, it should be done either via Client or CollisionGroups, he is right.

0

Most of the games are FE nowadays, performing this on client is will be way easier for him to understand.

This discussion is preserved as it was. New answers, comments, and votes are closed.