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.
Try Putting It In StarterGui or StarterPlayerScripts
I personally believe the best place to put localscripts is in the StarterPlayerScripts. Some people believe starterpack and or startergui is better. I firmly disagree with this and I will now tell you why.
Why not StarterPack
StarterPack is used for tools, not scripts. End of story.
Why not StarterGui
StarterGui is for Guis, not scripts. End of story.
Why StarterPlayerScripts
StarterPlayerScripts is for scripts, in particularly localscripts. End of story
If the script is not running it is either disabled or misplaced. The wiki lists where localscript can run:
A Player’s Backpack, such as a child of a Tool
A Player’s Player/Character|character model
A Player’s PlayerGui
A Player’s PlayerScripts.
The ReplicatedFirst service