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

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

Asked by 6 years ago

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
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. krisxxxz 45 — 6y
0
Appears that you made it so it only appears on the server, not all of the player's screens Rawblocky 217 — 6y
0
^ Thanks for the response...how would I change it to appear on the player's screens Never2Humble 90 — 6y
0
^ No way MicrosoftS98 17 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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

0
Because it doesnt apprar on the Player screen, just the server one. :/ i need the player to be able to see it. Never2Humble 90 — 6y
0
Aprar? Do you mean appear? MicrosoftS98 17 — 6y
0
Look do you mean in the roblox studio play mode it doesn't work? MicrosoftS98 17 — 6y
0
Its because he only places it in StarterGui.... He should change it in the PlayerGui instead. krisxxxz 45 — 6y
View all comments (3 more)
0
@krisxxz Yuo are right MicrosoftS98 17 — 6y
0
Yes, appear, sorry, mobile device. I've changed it to PlayerGui, still did not appear for the player in Roblox Studio local testing. Never2Humble 90 — 6y
0
Guys, I changed it to PlayerGui, and it doesn't work. "PlayerGui is not a valid member of Model" error Never2Humble 90 — 6y
Ad

Answer this question