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

is it possible if this will work inside a part?

This just something that make it were only that person can see

local player = game.Players.LocalPlayer
local userids = {} -- put IDs of players that you want to have the GUI here, then enable the script
yeah = false

for z = 1, #userids do
	if userids[z] == player.userId then
		yeah = true
	end
end

if yeah == false then
	script.Parent:Destroy()
end

1 answer

✓ Accepted answer

I haven't fully read the script, but instead of going through all of that trouble, you could parent the part from ServerStorage into the player's CurrentCamera.

Alternatively, have the object placed in the CurrentCamera (in the studio explorer), and have the script you've made. The only change I would make is putting the LocalScript inside the player (such as StarterGui to go into the player's PlayerGui), and changing line 12 to game.Workspace.CurrentCamera.Part to reference the part.

Hope I helped!

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