✓ Accepted answer
The reason you're not seeing anything happen is because you created the code in a Script instead of a LocalScript. Try doing that first. (If I got this wrong, you can skip this part.)
With the LocalScript code, the baseplate will only turn invisible for the player clicking the button in the GUI at that time. If that is your intended effect, you can stop there. However, if you want this to be replicated, I think this ROBLOX Wiki article about remote functions and events will help you make it invisible for the entire server.
After reading the article, we can try this with both the LocalScript from the GUI and a Script communicating via a RemoteEvent:
local event = game.ReplicatedStorage:WaitForChild("InvisibleBaseplate")
script.Parent.MouseButton1Click:Connect(function()
event:FireServer()
end)
event = Instance.new("ReplicatedStorage")
event.Name = "InvisibleBaseplate"
event.Parent = game.ReplicatedStorage
event.OnServerEvent:Connect(function(player)
print("baseplate made invisible by "..player.Name)
game.Workspace.Baseplate.Transparency = 1
end)
If this answer helped you, you can click the Accept button. If I made a mistake in any part of this or you have a question about this, you can make a comment on my answer by looking at the box below.
3 comments
Is this a script or local script?
This must be a normal script. It might be lag. Check to see if the script is disable.
its not a local script, and its not disabled.