hi, when player touch a part same gui is visible to all players, i only need to be visible to one player only, this is my code stored in local script at starter gui:
local part = game:GetService(“Workspace”):WaitForChild(“touchToEquipChair”)
local Workspace = game:GetService("Workspace")
local Players = game:GetService("Players")
local client = Players.LocalPlayer
local part = game:GetService("Workspace"):WaitForChild("touchToEquipChair")
part.Touched:Connect(function(other)
client.PlayerGui.test.t1.Visible = other:IsDescendantOf(client.Character)
end)
Since Touched fires when a part is touched by another, you need to check that the part that touched belongs to the character.