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

[ANSWERED] GUI shows in run mode in studio but doesn't when I play normally?

Asked by 4 years ago
Edited 4 years ago

So i'm just working on a dialogue, the text shows up on the text label and then after x amount of seconds it changes. So i did that, and then tried it out. Nothing shows up. Then I try in "run" mode, and it's all there. All i know is that people say it's like a "Server side" and "Client side" thing, but not sure. I also made it that the text on the text label is the value of a string value, and that the script changes the value, then the text changes to the value.

Here is the script, thanks to anyone who helps with this problem :)

local player = game.Players.LocalPlayer
local textValue = workspace.Text.Value
local textBar = player.PlayerGui.SpeechBar.TextLabel
local textGui = player.PlayerGui.SpeechBar.TextLabel


textBar.Visible = true
print("Visible")
wait(5.5)
textValue = "Hello Karlson, and welcome to generic milk company name!"
textBar.Text = textValue
print("first line said")
wait(4.5)
textValue = "You're my prisoner, and test subject."
textBar.Text = textValue
wait(3)
textValue = "Hahahaha, just kidding!"
textBar.Text = textValue
wait(2.3)
textValue = "Not really. Anyway, let's get you started!"
textBar.Text = textValue
wait(4)
textValue = "Your only objective is to get to the milk as fast as you can."
textBar.Text = textValue
wait(4)
textValue = "Sounds fun, right?"
textBar.Text = textValue
wait(2.5)
textValue = "If you can secure all the milk, you will receive a fantastic price!"
textBar.Text = textValue
wait(4.5)
textValue = "This is your companion, Billy."
textBar.Text = textValue
wait(3)
textValue = "He will help you through your journey, so take care of him, he's pretty fragile."
textBar.Text = textValue
wait(4)
textValue = "Well, good luck, and don't die."
textBar.Text = textValue
wait(3)
textValue = "Hahahaha, just kidding... unless?"
textBar.Text = textValue
wait(5)
textValue = " "
textBar.Text = textValue

0
Why are you copying dani lol Nguyenlegiahung 1091 — 4y
0
hey why not lmao TabooAntonioiscool 42 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

Make sure your script is: A local script and it was located in StarterGUi or StarterPlayerScripts

0
yayayay! thanks so much :D TabooAntonioiscool 42 — 4y
Ad

Answer this question