Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

LocalScript not changing text of gui!! Please help!!?

Asked by 5 years ago
Edited 5 years ago

So I have this local script. When an event does FireClient(), it will run, but the problem is that the local script is running(Cause the gui is enabled) but it will not change the text! Please help! ( NO ERRORS IN OUTPUT!)

local event = game:GetService('ReplicatedStorage'):WaitForChild('FindHost')


local plr = game.Players.LocalPlayer

event.OnClientEvent:Connect(function(folder)
    local hostname = folder.Name
    local gui = plr.PlayerGui.VisitorParty
    repeat wait()
    gui.VisitorFrame.Misc.Text = 'You are currently in '.. hostname..'s party!'
    gui.Enabled = true
    until gui.VisitorFrame.Misc.Text == 'You are currently in '.. hostname..'s party!' and gui.Enabled == true
end)
0
does it give. you any errors in console? (click view then click console) aandmprogameing 52 — 5y
0
You didn't even read what he sent, if I could downvote comments, you would be downvoted ^ greatneil80 2647 — 5y
0
Also we gotta see your other script linked to your event. greatneil80 2647 — 5y

Answer this question