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

How do I make a part visible to only one player?

Asked by
Dominical 215 Moderation Voter
10 years ago

I want to know how I can make a part visible to only one player.

I am trying to get every part in a model visible to one player,

for i,v in pairs(preview:GetChildren()) do
        if v:IsA("Part") then
            v.Transparency=0.5
        end
0
Its called LocalParts, try looking on the wiki. Vividex 162 — 10y

2 answers

Log in to vote
2
Answered by 10 years ago

Placing it in localplayer's camera (Only works for local player)

Part = Instance.new("Part", Workspace.CurrentCamera)

Test it with a friend. Or create a server in studio with two players. Hope I helped :)

0
NOTE: Needed localscript fireboltofdeath 635 — 10y
0
Thank you. Dominical 215 — 10y
0
More information and another method here: http://wiki.roblox.com/index.php?title=Local_parts BlueTaslem 18071 — 10y
0
You're welcome, Dominical. fireboltofdeath 635 — 10y
Ad
Log in to vote
0
Answered by 10 years ago

You would place it in the localplayer's camera, this means that it would only THAT PLAYER could see it, or would see it differently too others.

Go here for more information about Local_Parts:

http://wiki.roblox.com/index.php?title=Local_parts

Answer this question