✓ Accepted answer
#FilteringEnabled and Local Parts
has come with some exciting features. One of which is the ability to make LocalParts much easier than with the old method. Here's are examples of how to make a local parts/models:
##Making the part:
This is inside of a Local Script
local part = Instance.new("Part", workspace)
part.CFrame = CFrame.new()
##Modifying an existing part:
local part = workspace.Part
part.BrickColor = BrickColor.Random()
##Local Model:
local model = game:GetService("ReplicatedStorage").Model
model.Parent = workspace
#Old Method
You mentioned the old method of making LocalParts, where you put the part into the camera because only the client can see the camera.
local part = Instance.new("Part", workspace.Camera)
part.CFrame = CFrame.new()
This is the old way to do it. You don't have to do this anymore.
#Summary
Any changes that a LocalScript does will only be visible to the client. Everything else will be invisible to the server and other clients. If you change a part color, only the client sees the new color. If you change the position, only the client sees the new position. Etc.
Hope it helps!
4 comments
that's what i want to know..thank you so much
No problemo :)
what about changing player movement on the client? because i tested it and i used a local script for player movement and other clients saw it
@ScrubSadmir Thats because the client is in charge of player's movement. This is also the reason why most tools use local scripts and still function. Local scripts only work if inside the player (or character) and is making changes to the character or ui for example