Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Need help making the Gui appear on both Server and Player Test Screen?

I have a script that destroys models. The destruction works fine. I want it to also play an audio clip and display the Text and Image from a Screen Gui under StarterGui called "MapWarning"

When I test it out in Studio under a local server, the Audio plays fine. But the Text and Image only appear in the Server window, not the Player1, Player2, etc. window.

Pretty sure I've just overlooked something stupid, since it does appear in the Server window. How can I correct this?


wait(10)

game.StarterGui.MapWarning.TextLabel.Text = 'WARNING!'
game.StarterGui.MapWarning.ImageLabel.Visible = true
script.Sound:Play()
wait(6)
if script.Parent then script.Parent:Destroy() 
end 


4 comments

0

Do you have FE on? And what you are doing in the script that will only appear if a new player enters or you have ScreenGui to reset on died, will cause it to only appear to a player that just respawned. StarterGui is just like a StarterPack where tools wont directly appear in player's Backpack. If some of these tips help, I hope your script will work.

0

Appears that you made it so it only appears on the server, not all of the player's screens

0

^ Thanks for the response...how would I change it to appear on the player's screens

0

^ No way

1 answer

Some scripts don't work in studio why do you want it if it works fine in server?

7 comments

0

Because it doesnt apprar on the Player screen, just the server one. :/ i need the player to be able to see it.

0

Aprar? Do you mean appear?

0

Look do you mean in the roblox studio play mode it doesn't work?

0

Its because he only places it in StarterGui.... He should change it in the PlayerGui instead.

0

@krisxxz Yuo are right

0

Yes, appear, sorry, mobile device. I've changed it to PlayerGui, still did not appear for the player in Roblox Studio local testing.

0

Guys, I changed it to PlayerGui, and it doesn't work. "PlayerGui is not a valid member of Model" error

This discussion is preserved as it was. New answers, comments, and votes are closed.