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

Changing the colour of parts in a model for one player only?

How would I make all the parts in a model change for one player only I know how to change a parts color and change all the parts in a model's color but how would I change it for one person (locally, I believe)

Model = game.Workspace.Model
Children = Model:GetChildren()

Player = game.Players.LocalPlayer
Character = v.Character.HumanoidRootPart

CPos = Character.Position
MPos = Model.Position -- Do models have positions I presume they do since you can Move them to a position
Distance = (CPos-MPos).Magnitude

while Disance < 30 then
	for i in Children do
		Children.BrickColor = BrickColor.new("Bright red")
		-- But local for one player, not all players
	end
end

1 comment

1

Put them in currentCamera, change them client sided.

1 answer

If you're using filteringEnabled, you can change them from the client and it won't replicate to the server or other clients.

2 comments

0

Any cons of using FIltering Enabled?

0

Changes made by the client don't replicate to the server. Meaning, if you want to delete a part, you need to use RemoteEvents to tell the server to do so. There are no cons if used correctly.

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