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

Adding: Local Bricks?

How do I make bricks where only one player sees them?

2 answers

First you will need the player join localscript (Make a localscript into StarterGear)

Remember to put the part inside lighting!

local LocalP = game:service('Players').LocalPlayer

local PartName = "Part" --Replace Part with your part's Name (property)

local PartIWant = game:service('Lighting'):findFirstChild(PartName) 

if LocalP and LocalP.PlayerGui then
if PartIWant~=nil then
local Msg=Instance.new('Message',LocalP.PlayerGui) Msg.Name='LocalBin'-- This is how you make a LocalBinary (Local Sight), LocalBin isn't obrigatory to be named as that.
PartIWant:Clone().Parent=Msg
else
error('[NullException - IO] Unknown Part Defined '..tostring(PartName)..' !')
end
end

Hope this helps! If not tell output! ~marcoantoniosantos3

Local script,

local Player = game.Players.LocalPlayer
local Camera = game.Workspace.CaurrentCamera
local Part = Instance.new("Part")
Part.Parent = Camera
Part.Anchored = true

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