Alright so i have enabled filtering (i need to have it enabled dont) and i have a server script located in "ServerScriptService" in the game. This trys to acces the screengui entity in the Player's Gui but i dont think it works like that , i was wondering what its stopping it from working, thansk for any help ~bubs
function onPlayerEntered(player)
player.CharacterAdded:connect(function(character)
local GUI = player.PlayerGui['Screen GUI'] -- error here "Screen GUI is not a valid member of playerGui" or something like that
--....excess code down here (why the character parameter is needed ha)
end)
end)
--(E.G) This is an example script of me trying to acces the GUI (similar to my one)
P.S - this works in Studio as well

2 comments
thanks. Basically, i have created cutom GUI bars that displays health and XP, and i need to it update when the xp is chanegd, or health is changed. But thanks for the help, i understand remote events n stuff, so ill try and implement it :3
Now the health bar you should be able to take humanoid's health from the LocalPlayer's character. XP depends on how you handle it. To prevent severe latency of events or functions it is recommended you try to keep client things client oriented, and server things server oriented.