I have been struggeling for an hour with this and i need some help.
I have a part, when you click it, a stringvalue’s value changes text. And when the stringvalue’s text is the text that has been changed and not, the text before the part was clicked, then a gui opens (wich i have a script for)
if script.Parent.StringValue.Value == "Login" then
script.Parent.ClickDetector.MouseClick:Connect(function()
local guiClone = script.Parent.ScreenGUI:Clone()
guiClone.Parent = player.PlayerGui
end)
end
-- the stringvalue changes, when you click a button it will say "Login"
-- i also changed name of everything to the original name so its easier for you
script.Parent.ClickDetector.MouseClick:Connect(function()
if script.Parent.StringValue.Value == "Login" then
local guiClone = script.Parent.ScreenGUI:Clone()
guiClone.Parent = player.PlayerGui
end
end)