You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? I just want the prompt to not be visible on them self because I only want it to be visible for others.
-
What is the issue? The problem is that I changed enabled to false on the client but that replicates to the server and then it isn’t visible to everyone else but is visible on them.
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
As far as I know I haven’t seen any other posts about this issue. Maybe it’s my code.
Client Side
local Player = game.Players.LocalPlayer
local Role = Player:WaitForChild("Role")
local Prompt = script.Parent
local Connection = nil
local function OnChanged()
-- if connection then
if Connection then
-- Disconnect the evemt
Connection:Disconnect()
Connection = nil
-- Change the Enabled property to false
Prompt.Enabled = false
-- wait 0.03 secounds
wait(0.03)
Connection = script.Parent.ArrestUI:GetPropertyChangedSignal("Enabled"):Connect(OnChanged)
end
end
Connection = script.Parent.ArrestUI:GetPropertyChangedSignal("Enabled"):Connect(OnChanged)
OnChanged()