Hi, I've been trying to use remote events to change gui texts but none of my scripts will work. Can you help and explain why it won't work?
--// Server Script
local event = Instance.new("RemoteEvent")
event.Parent = game.Workspace
event.Name = "MyServerEvent"
game.Workspace.MyServerEvent:FireAllClients()
--// Local Script
local client = game:GetService("Players").LocalPlayer
local playergui = client.PlayerGui
game.Workspace.MyServerEvent.OnClientEvent:connect(function()
playergui.ScreenGui.TextLabel.Text = "testing"
end)

2 comments
All it's saying is that ScreenGui is not a valid member of playergui. Do you know why?
Make sure that's where the Screengui is.. and make sure it's called "ScreenGui". If you're inserting it from a script, pm me the script via roblox, if not.. then that should be the problem (misplacement and/or the name)