How to make Text from StarterGui visible to players

Hello, i have issues in Guis and scripting today, i’m not a scripter but i know only basics,
So, i have ScreenGui in my StarterGui, and it’s have a transparency and rotation change script:
image
(Script in ServerScriptService)

And, what’s the issue?, it’s not showing for players, i can go on “Run” mode in studio, and it’s gonna work, but only for this mode, if i’ll go and play as a player, it’s just not gonna show to me,
I did everything what i can, but i don’t know how to put it all in PlayerGui or something, please, if someone can modify my script or help me.
I’m stuck for hours now.
[Text Labels is TextTransparency = 1 in StarterGui]
Example of my script:

local TextLabel = game.StarterGui.ScreenGui.Night
local TextLabel2 = game.StarterGui.ScreenGui.Day
while true do
	wait(1)
	TextLabel.TextTransparency = 0
	TextLabel.Rotation = 5
	wait(0.1)
TextLabel2.TextTransparency = 0
	TextLabel2.Rotation = 5
1 Like

You should be getting the ScreenGui from the PlayerGui, not from StarterGui (else if its a local script, just use .Parent (or wherever ur screengui is) to get the ScreenGui.

Sure i know this, so i’m asking for help, how to do that? (my script is not local)
I’m trying to do this entire day.
How should i put my ScreenGui to PlayerGui if it’s not even in explorer

is your server sided script in workspace? Or where

You can’t change screen gui from the server because they are only a thing inside of the player’s screen, so you need to do it in a local script, also when you do don’t get game.StarterGui, do game.Players.LocalPlayer.PlayerGui (probably get a variable for the local player tho)

1 Like

The server doesn’t have acess to the client’s computer. anything that is from StarterGui will be cloned into PlayerGui upon spawning in (if there is not pre existing Gui and said Gui is ResetOnSpawn=false)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.