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

Your title should be specific! Describe your problem concisely?

Okay so this is my code in-game and im putting this in just a regular script because I can't use a localscript for my game, or this would this be 10x easier. Ok so here's the code:

for i, v in pairs(game.Players:GetPlayers()) do
	Start = v.PlayerGui.Starting 
	Textlabel = Start.Textlabel
	Textlabel.Visible = true
	v.PlayerGui.Starting.Textlabel.Text = "Your objective is to climb the cliff and dodge the vehicles coming down to hit you."
	ws.Tele2.Click:Play()
	wait(8)
end

Okay so everything works in studio but in-game, it doesnt work.

1 comment

0

+1 for getting around the title-checker in that manner. Next time, actually take the time to construct a better title or it may be moderated.

1 answer

From what I understand, you can't communicate with the player's gui from the server directly. If you want to know how to do that, let me know. A better method of what you have above would be this, in a localscript, in StarterGui.


local Start = script.Parent.Starting
local TextLabel = Start.TextLabel
TextLabel.Visible = true
TextLabel.Text = 'Your objective is to climb the cliff and dodge the vehicles coming down to hit you'
-- I am unsure where ws.Tele2.Click:Play() is located, but if it is a sound you should put it in this script or anywhere in the "Starting" ScreenGui (Assuming that it *is* a ScreenGui)

Oh and a side note, please use actual descriptive titles. I decided to do you the favor of helping you out here despite the lack of a title you gave, but most people wont do what I did.

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