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

Changing GUI ImageLabels and TextBox (GUI ingame)?

Asked by 8 years ago

how do I make it so when I reset the gui doesnt revert back to its original form?

HomeL = game.Workspace.Variables.HomeL
AwayL = game.Workspace.Variables.AwayL
function onClicked()
    wait(1)
    game.Workspace.Variables.AwayL.Value = "http://www.roblox.com/asset?id=366676151"
end
game.Workspace.ct1.AWAY.ClickDetector.MouseClick:connect(onClicked)
function onClicked()
    wait(1)
    game.Workspace.Variables.HomeL.Value = "http://www.roblox.com/asset?id=366676151"
end
game.Workspace.ct1.HOME.ClickDetector.MouseClick:connect(onClicked)

AwayL.Changed:connect(function()
    script.Parent.AwayLogo.Image = AwayL.Value 
end)
HomeL.Changed:connect(function()
    script.Parent.HomeLogo.Image = HomeL.Value 
end)

1 answer

Log in to vote
0
Answered by 8 years ago

In the StarterGUI object, uncheck "ResetPlayerGUIOnSpawn"

Ad

Answer this question