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

How do I let only one player see a Terrain?

Asked by
Bertox 159
7 years ago

I know that when you put parts in CurrentCamera then it only shows for the player, but how do I make the Terrain shows only for one player?

This is my script:

script.Parent.MouseButton1Click:connect(function()
    script.Parent.Parent.Visible = false
    script.Parent.Parent.Parent.TextLabel.Visible = false
    local water = game.Lighting.GoodWater:Clone()
    water.Parent = game.Workspace.CurrentCamera
    for i,water in pairs(water:GetChildren()) do
        game.Workspace.Terrain:FillBlock(water.CFrame, water.Size, Enum.Material.Water)
    end
end)

But it shows for every player.

1
Use FE User#5423 17 — 7y
0
But I am working on a non filtering enabled game, my others scripts would break and I had to redo everything Bertox 159 — 7y
0
Is there any other way? Bertox 159 — 7y
0
If you are able to create terrain in a local script then, maybe you can. FiredDusk 1466 — 7y
View all comments (2 more)
1
@FiredDusk wouldn't creating anything really from the client with fe off send it to everyone else too? DanzLua 2879 — 7y
0
@Bertox No there isn't any other way. Local changes are the whole point of FE. cabbler 1942 — 7y

Answer this question