local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local WaveNum = playerGui.ScreenGui("WaveNumber")
I have this script that should be accessing the screen gui on start and allow me to use the "Wave Number" Gui but it doesnt allow me to, If someone could point me in the right direction that would be great. Edit: I forgot to say that i am trying to change a persons number in the leaderboards / player list based on what wave they are on, but when i do it doesnt change it and takes the leaderboards off of the persons name, and i am fairly new to scripting too. Sorry for the inconvenience. And if there was already an answer to this question i havent been able to find it, because i have looked in a lot of places and nothing has said how to do this :/

3 comments
Its a Server-Side script
Server-side scripts cannot use LocalPlayer or manipulate PlayerGui's, you do PlayerGui manipulation in a LocalScript. For changing leaderstats you can just use a script
Oh, ok thanks for the feed back, that would explain why it wont work