|
| 22 Aug 2014 03:29 PM |
function Clicked() if script.Parent.Parent.NameThang.Text == Ness then script.Parent.Parent.NameThang.Text = David script.Parent.Parent.NameThang.Text = Ness end end script.Parent.MouseButton1Down:connect(Clicked)
this script will not work, when i click the button the namethang will not change text |
|
|
| Report Abuse |
|
|
davisky2
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 4710 |
|
|
| 22 Aug 2014 03:31 PM |
function Clicked() if script.Parent.Parent.NameThang.Text == "Ness" then script.Parent.Parent.NameThang.Text = "David" script.Parent.Parent.NameThang.Text = "Ness" end end script.Parent.MouseButton1Down:connect(Clicked) |
|
|
| Report Abuse |
|
|
| |
|
davisky2
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 4710 |
|
|
| 22 Aug 2014 03:37 PM |
db = 0 script.Parent.MouseButton1Click() if db == 0 then db = 1 if script.Parent.Parent.NameThang.Text == Ness then script.Parent.Parent.NameThang.Text = David script.Parent.Parent.NameThang.Text = Ness end db = 0 end end)
Are you sure parents count is written in correct amount? And are you sure that NameThang is correct? |
|
|
| Report Abuse |
|
|
davisky2
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 4710 |
|
|
| 22 Aug 2014 03:38 PM |
db = 0 script.Parent.MouseButton1Click() if db == 0 then db = 1 if script.Parent.Parent.NameThang.Text == "Ness" then script.Parent.Parent.NameThang.Text = "David" wait(5) -- Lets wait a time... script.Parent.Parent.NameThang.Text = "Ness" end db = 0 end end)
--forgot to put "s |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2014 03:39 PM |
| im very sure my parent count is correct and namethang was spelled right, btw your script didnt work |
|
|
| Report Abuse |
|
|
davisky2
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 4710 |
|
|
| 22 Aug 2014 03:41 PM |
| did you tested with wait too? Because it should work... oh what does the output says? |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2014 03:43 PM |
Nothing is happening in the output i click it and nothing happens
|
|
|
| Report Abuse |
|
|
| |
|
Vescatur
|
  |
| Joined: 18 Feb 2012 |
| Total Posts: 3426 |
|
|
| 22 Aug 2014 03:50 PM |
function Clicked() if script.Parent.Parent.NameThang.Text == "Ness" then script.Parent.Parent.NameThang.Text = "David" elseif script.Parent.Parent.NameThang.Text == "David" then script.Parent.Parent.NameThang.Text = "Ness" end end script.Parent.MouseButton1Down:connect(Clicked)
So, like, you were changing it to David then INSTANTLY changing it back to "Ness", making it look like it never changed.
This new one will make clicking it once change it to David, clicking again will change it back to Ness. |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2014 03:52 PM |
| theres no text in the text label right now |
|
|
| Report Abuse |
|
|
| |
|