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

My script won't change the language?

Asked by 2 years ago

Hi,

I made a script that can change the language if you press a GUI button, but if I press it, it won't work.


script.Parent.MouseButton1Click:connect(function()     game.StarterGui.Menu.Start.Text = "Play"     game.StarterGui.Menu.Credit.C2.Text = "Programmer: ThebigGrow41"     game.StarterGui.Menu.Credit.C5.Text = "Nothing there yet!"          game.StarterGui.Menu.Balken.TextLabel.Text = "Game progress:"          game.StarterGui.Menu.Infozusatz.J1.Text = "On wich platform you can play the game:"     game.StarterGui.Menu.Infozusatz.J2.Text = "Advantage for pre-order"     game.StarterGui.Menu.Infozusatz.B2.Text = "At first can pre-order play the game before release. Pre-order will become exclusive items: a balloon, outfits, and a Roblox pre-order shirt. Pre-ordered can play too on their own servers (only when the game is out) if they do not want so much action."     game.StarterGui.Menu.Infozusatz.G.Text = "Graphic settings for the best feeling"     game.StarterGui.Menu.Boss.Schrift.Text = "Setting"     game.StarterGui.Menu.Settings.Text = "Settings" end)

I even deleted the line with the big text, but it won't work either.

1 answer

Log in to vote
-1
Answered by 2 years ago
Edited 2 years ago

"StarterGui"

you are changing the button's text in the StarterGui, not the PlayerGui while running the code very quickly (no waits)

if you are changing the button's text and the script is a child of the button then



script.Parent.Text = "Play" script.Parent.Text = "Programmer: ThebigGrow41" script.Parent = "Nothing there yet!" script.Parent.Text = "Game progress:" script.Parent.Text = "On which platform you can play the game:" script.Parent.Text = "Advantage for pre-order" script.Parent.Text = "At first can pre-order play the game before release. Pre-order will become exclusive items: a balloon, outfits, and a Roblox pre-order shirt. Pre-ordered can play too on their own servers (only when the game is out) if they do not want so much action." script.Parent.Text = "Graphic settings for the best feeling" script.Parent.Text = "Setting" script.Parent.Text = "Settings"
Ad

Answer this question