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

Why won't the text of a gui change?

Asked by 5 years ago
Edited 5 years ago

So I have this gui and when a event fires, the text of a gui will change, but it doesn't. Please HELP!!

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:WaitForChild('VisitorParty').VisitorFrame.Misc

    local ScreenGui = plr.PlayerGui.VisitorParty

    Gui.Text = 'Working!'

    ScreenGui.Enabled = true

end)
0
BTW, the folder is gonna be the host's(creator of party)'s name. I made the text 'Working!' for testing purposes only. MahadTheIronSword 98 — 5y
0
It'd be better if you could post the full code, like when it's called and the error console if any ItsBankai 31 — 5y

Answer this question