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

Your title should be specific! Describe your problem concisely?

Asked by
g4bez 0
6 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

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.

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. Shawnyg 4330 — 6y

1 answer

Log in to vote
0
Answered by
Optikk 499 Donator Moderation Voter
6 years ago
Edited 6 years ago

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.

Ad

Answer this question