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

Why does editing brick transparency only show to one person?

Asked by 5 years ago

I am working on a theater game, and a have an admin GUI that can control certain aspects of the theater, such as moving parts from replicated storage to the workspace, visa versa, and editing the transparency of bricks. However, when I used the Microsoft app to play ROBLOX on my alt account, (which does not have admin permissions) and I joined my main account (which does have admin permission), when my main account took parts out of replicated storage with a GUI, and put them into workspace, it only showed the parts in workspace for my main account. This also happened when changing the transparency of parts. Here is the script I used Inside of a text button, to make the parts appear and disappear.

script.Parent.MouseButton1Click:Connect(function() if game.ReplicatedStorage.Status.Value == "Open" then game.ReplicatedStorage.RedCarpetDoor.Parent = workspace wait(0.2) game.ReplicatedStorage.RedCarTiles.Parent = workspace wait(0.2) game.ReplicatedStorage.RedCarCouches.Parent = workspace wait(1) game.ReplicatedStorage.Status.Value = "Closed" wait(1) else if game.ReplicatedStorage.Status.Value == "Closed" then game.Workspace.RedCarCouches.Parent = game.ReplicatedStorage wait(0.2) workspace.RedCarTiles.Parent = game.ReplicatedStorage wait(0.2) workspace.RedCarpetDoor.Parent = game.ReplicatedStorage wait(1) game.ReplicatedStorage.Status.Value = "Open" end end end)

0
It's probably an issue with localscript and script. A Script should be the one to place the part into workspace so that everyone sees it. Have the localscript trigger a script which will do the work. wwwdanielwww 5 — 5y
1
If the changes are made from the client, the server will not replicate those changes to the other clients (nor will it notice them). I'm assuming this is a LocalScript. In order to fix this issue, you're going to need to learn how to use Remote Events / Remote Functions in order to have the server make the changes (so that the changes will replicate to all clients). User#26971 0 — 5y

1 answer

Log in to vote
1
Answered by
Norbunny 555 Moderation Voter
5 years ago

Since that you are using a local script(also known as "Client sided script"), things only happen for the current client(player).

In order to make it replicate so that the server and the other players see, you must use a Remote Event.

If you are new to those, you should really start looking into it.

Ad

Answer this question