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

Adding: Local Bricks?

Asked by 9 years ago

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

2 answers

Log in to vote
0
Answered by 9 years ago

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

Ad
Log in to vote
-4
Answered by 9 years ago

Local script,

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

Answer this question