code:
local player = game:GetService("Players").LocalPlayer
local event = game:GetService("ReplicatedStorage"):WaitForChild("ClickEvent")
local function clickEvent()
player.PlayerGui.Hosvi.Frame.Visible = true
print("epic")
end
event.OnClientEvent:Connect(clickEvent)
It returns no errors. It does nothing.
It waits for the event to run, which it does, but then nothing happens.

3 comments
watch this https://www.robloxdev.com/api-reference/class/PlayerGui
game:GetService(‘Players’).LocalPlayer:WaitForChild(‘PlayerGui’)
local scripts can run inside StarterGui, StarterPlayer, StarterPack, inside the players character and ReplicatedFirst