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)

3 comments

0

does it give. you any errors in console? (click view then click console)

0

You didn't even read what he sent, if I could downvote comments, you would be downvoted ^

0

Also we gotta see your other script linked to your event.