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

how to make only one person see a part?

Asked by 2 years ago

how to make only one person see a part?

1
Make it invisible and then use a LocalScript and RemoteEvent to show it to the player zanyder 1 — 2y
0
What do you exactly mean by this? Antelear 185 — 2y

2 answers

Log in to vote
0
Answered by
Cirillix 110
2 years ago

Create the part through a local script.

local Part = Instance.new("Part")
Part.Parent = game.Workspace
Ad
Log in to vote
0
Answered by 2 years ago

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

Answer this question