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

Changing text with a script with FE on?

Asked by
zmonds 7
6 years ago

I've been trying to do this for weeks at this point and I can't seem to get anything to come up. I t always works in studio but when i launch a server it does not appear. Any help would be appreciated at this point

Script in SSS

local text = "ABORTnite"

game:GetService("ReplicatedStorage").gui:FireAllClients(text)

LocalScript

local bext = game.Players.LocalPlayer.PlayerGui:WaitForChild("ScreenGui"):WaitForChild("TextLabel")


game:GetService("ReplicatedStorage").gui.OnClientEvent:Connect(function(text)
bext.Text = text
end)
0
put the local script in the textlabel and use script.Parent instead of bext variable INOOBE_YT 387 — 6y
0
I do the exact same thing and it works online. It's probably bext INOOBE_YT 387 — 6y
0
I think the issue here is you're referring to the PlayerGui. Put the Local Script in the textlabel in the starter gui itself so the game doesn't have to retrace its steps with this. Lugical 425 — 6y

Answer this question