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

My script wont access Guis through PlayerGui?

Asked by 5 years ago
Edited 5 years ago
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 :/

0
Its a Server-Side script Voidyll 8 — 5y
0
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 Vulkarin 581 — 5y
1
Oh, ok thanks for the feed back, that would explain why it wont work Voidyll 8 — 5y

Answer this question