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

how to make only one person see a part?

how to make only one person see a part?

2 comments

1

Make it invisible and then use a LocalScript and RemoteEvent to show it to the player

0

What do you exactly mean by this?

2 answers

Create the part through a local script.

local Part = Instance.new("Part")
Part.Parent = game.Workspace

Simply use local parts! Local parts are parts that are created in a local script. This is how games with story progression allow some players to move past obstacles while others have to complete whatever they need to before they can progress.

-- Local Script 
p = Instance.new("Part", workspace)

Moreover, you could do what zanyder suggested in the comments and make a part on the server and use remote events to control who sees it.

-- function that is called whenever a story event finishes
function StoryEventEnd(player)
	ClearObstacleEvent:FireClient(player)
end

-- client code

ClearObstacleEvent.OnClientEvent:Connect(function()
	workspace["ObstacleName"]:Destroy()
end)

If this answer helped you, please mark it as correct so others may see it when passing by <:

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