Button Thats Activates For Only One Person

What I Want To Do
So i Wanna Make A Button That When You Click Another Part Becomes Transparent,And It Should Only Show Up For You
Problem
So Uhhh Im Not Sure What To Do,
I Used A Remote Event To Try And Do So And Uh Heres The Code
Code
I Put A Local Script In StarterGui

local cd = game.Workspace.ButtonActive.ClickDetector
cd.MouseClick:Connect(function()
wait(3)
game.ReplicatedStorage.reaveal:FireServer()
end)

And One In The Script in Server Script Service

game.ReplicatedStorage.reaveal.OnServerEvent:Connect(function()
game.Workspace.Model.ButtonThing.Transparency = 0
game.Workspace.Model.Part2.Transparency = 0
end)

Also A event called reaveal in RepStorage
If You Can Help Thanks Ig

You can do this in a server script, get the player who clicked it FireClient(player, …) and then catch the event in a local script and it’ll work on only 1 persons’ screen

1 Like

Do everything on the client if you want only the part to show for them. What you are doing now is doing it on the server which will replicate it to everyone else

1 Like

this may be a security risk as a hacker could make the part visible but for what your asking for it should work

If you want the script it is something like :

local cd = game.Workspace.ButtonActive.ClickDetector
cd.MouseClick:Connect(function()
       wait(3)
       game.Workspace.Model.ButtonThing.Transparency = 0
       game.Workspace.Model.Part2.Transparency = 0
end)

This is a local script

1 Like

Tysm.Ill do that right away.
Ill get back to you if it works

Also Thank You Too I was dumb to fire a remote event instead of doing this ty

1 Like