I have a bunch of buttons in a tycoon that I am making and so far they are visible to everyone but I want them to be visible to only the owner of the tycoon. I tried using remote events to make the buttons visible in a local script but that did not work. What do you think is the best way to solve this problem?
-- Local script local ReplicatedStorage = game:GetService("ReplicatedStorage") local remotes = ReplicatedStorage:WaitForChild("Remotes") local setTrans = remotes:FindFirstChild("SetTrans") setTrans.OnClientEvent:Connect(function(object, t) object.Transparency = t end)
Assuming the buttons are meant for stepping on them to buy things, you should make them all on the server and set their transparency to 1 so they're invisible on the server. When set person claims the tycoon it should make all buttons on that tycoon visible for the LocalPlayer (on the client)
This way you can still handle the Touched on the server but without clients seeing them apart from the tycoon owner.