So basically I am making a car shop GUI shown here(http://prntscr.com/6bx9ln). I have the main GUI with all the buttons and then there is a information panel GUI on the right. When someone clicks on a car text button I have a text button named "Name" and a text button called "Buy". The text button called "Name" is supposed to be the name of the car in the information panel, and in the script I want the script to change the text button "Name" 's text from "Name" to the car name. Keep in mind that "Name" and "Buy" are both invisible. For "Buy", I want that to also become visible when the player clicks on a car text button and I have the "Buy" text button's text change from Buy to the price of the car and making it visible when they click a car text button. I have made this script and It is not working.
script.Parent.MouseButton1Click:connect(function()
local x = StarterGui.Carshop.Frame --the variable
x.Name.Visible = true --making the text button "name" visible
x.Buy.Visible = true --making the text button "buy" visible
x.Buy.Text = "$5000" --Changing the text from "buy" to $5000
x.Name.Text = "Civi Car" --Changing the text from "Name" to Civi Car"
end)
If you want to see the web or layout of the GUI and frame it is here http://prntscr.com/6byc60.
Also In my last post, someone tried fixing it and it still didn't work(thanks tho BSI).
PS: I might not respond right away.
