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

Why doesn't the variable work?

Asked by
Danfly 5
10 years ago

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

Please ignore the last parts of it.

RegisterMain is a Model, Register01 is a model inside it Cloner is a part inside it Registergui is a screengui A Account is a frame. I want to make a VARIABLE FOR "A Account" so if it shows "A Account it means "B Account"

game.Workspace.RegisterMain.Register01.Cloner.RegisterGUI["A Account"] = game.Workspace.RegisterMain.Register01.Cloner.RegisterGUI["B Account"]



function onSelect()
game.Workspace.RegisterMain.Register01.Cloner.RegisterGUI["A Account"]["+10000000"].Visible = true
game.Workspace.RegisterMain.Register01.Cloner.RegisterGUI["A Account"]["+10000000A"].Visible = true
game.Workspace.RegisterMain.Register01.Cloner.RegisterGUI["A Account"]["+5000000"].Visible = true
game.Workspace.RegisterMain.Register01.Cloner.RegisterGUI["A Account"]["+5000000A"].Visible = true
game.Workspace.RegisterMain.Register01.Cloner.RegisterGUI["A Account"]["-10000000"].Visible = true
game.Workspace.RegisterMain.Register01.Cloner.RegisterGUI["A Account"]["-10000000A"].Visible = true
game.Workspace.RegisterMain.Register01.Cloner.RegisterGUI["A Account"]["-5000000"].Visible = true
game.Workspace.RegisterMain.Register01.Cloner.RegisterGUI["A Account"]["-5000000A"].Visible = true
game.Workspace.RegisterMain.Register01.Cloner.RegisterGUI["A Account"]["+5"].Visible = true


end

script.Parent.MouseButton1Click:connect(onSelect)

0
Are you trying to make B account's gui object's visibility the same as A account's gui objects? Spongocardo 1991 — 10y
0
This question was already answered. But your problem is that you didn't define a variable here. Tkdriverx 514 — 10y

Answer this question