|
| 17 May 2014 10:10 AM |
-- It disconnects due to exception here... What's wrong? if script.Parent.Visible == true then |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 17 May 2014 10:11 AM |
I doubt it is because of that.
Post the lines around that line. |
|
|
| Report Abuse |
|
|
|
| 17 May 2014 10:12 AM |
--Well, it worked before I added this line, and the extra end.
local dialog = script.Parent.Parent:FindFirstChild("Dialog") local one = script.Parent.Parent:FindFirstChild("Choice1") local two = script.Parent.Parent:FindFirstChild("Choice2")
function onClick(click) if script.Parent.Visible == true then one.TextColor3 = one.TextStrokeColor3 one.TextStrokeTransparency = 0.9 wait(0.5) one.TextColor3 = Color3.new(0, 0, 0) one.TextStrokeTransparency = 0.75 dialog.Text = ("Hello!") one.Text = ("Hello!") two.Text = ("Goodbye!") end end
script.Parent.MouseButton1Down:connect(onClick) |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 17 May 2014 10:15 AM |
| dialog, one, two are TextLabels and script.Parent is a TextButton? eh |
|
|
| Report Abuse |
|
|
|
| 17 May 2014 10:17 AM |
| 1 and 2 are text buttons. There's a script like this in each. Dialog is text label. ._. |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 17 May 2014 10:19 AM |
| Sorry, but I'm not sure what causes this. |
|
|
| Report Abuse |
|
|
|
| 17 May 2014 10:27 AM |
sometimes when I add an if and it doesn't work
I put an else at the back of the script so that it won't break |
|
|
| Report Abuse |
|
|
|
| 17 May 2014 10:36 AM |
| That could work. It might be that there's an if in the middle of a function. |
|
|
| Report Abuse |
|
|
|
| 17 May 2014 10:38 AM |
| It's cool, I figured it out. :) |
|
|
| Report Abuse |
|
|