|
| 10 Jun 2012 09:38 AM |
function player() wait(1) script.Parent.Parent.Output.Line1.Text = "Test1" wait(1) script.Parent.Parent.Output.Line2.Text = "Test2" wait(1)
script.Parent.MouseEnter:connect(player)
The way it is accessed is correct, but i don't know what else may be making it not work. I can't test it in build or edit mode, so i have to keep going from edit to play. |
|
|
| Report Abuse |
|
|
NXTBoy
|
  |
| Joined: 25 Aug 2008 |
| Total Posts: 4533 |
|
|
| 10 Jun 2012 09:40 AM |
You're missing an end:
function player() wait(1) script.Parent.Parent.Output.Line1.Text = "Test1" wait(1) script.Parent.Parent.Output.Line2.Text = "Test2" wait(1) end script.Parent.MouseEnter:connect(player)
You can also rewrite that as:
local gui = script.Parent script.Parent.MouseEnter:connect(function() wait(1) gui.Parent.Output.Line1.Text = "Test1" wait(1) gui.Parent.Output.Line2.Text = "Test2" wait(1) end) |
|
|
| Report Abuse |
|
|
| |
|