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

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

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

1 comment

0

Its called LocalParts, try looking on the wiki.

2 answers

✓ Accepted answer

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 :)

4 comments

0

NOTE: Needed localscript

0

Thank you.

0

More information and another method here: http://wiki.roblox.com/index.php?title=Local_parts

0

You're welcome, Dominical.

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