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

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

Asked by
Mystdar 352 Moderation Voter
9 years ago

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
Put them in currentCamera, change them client sided. Goulstem 8144 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

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

0
Any cons of using FIltering Enabled? Mystdar 352 — 9y
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. Cawlonee 0 — 9y
Ad

Answer this question