BEART12
|
  |
| Joined: 22 Oct 2008 |
| Total Posts: 3190 |
|
|
| 07 Dec 2013 12:16 PM |
local Window = script.Parent b = script.Parent.Boards
function ChangeHealth() if script.Parent.Health == 4 then b.Board1.Transparency = 1 end
end
script.Parent.Health.Changed:connect(ChangeHealth)
will not work for some reason....
|
|
|
| Report Abuse |
|
|
BEART12
|
  |
| Joined: 22 Oct 2008 |
| Total Posts: 3190 |
|
| |
|
moryo7
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 5028 |
|
|
| 07 Dec 2013 03:34 PM |
:Connect needs to be capitalized
✦мøяƴø子✦ |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2013 03:34 PM |
| Post it without all the unneeded spaces plez |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 07 Dec 2013 03:35 PM |
script.Parent.Changed:connect(ChangeHealth) -- Maybe this?
Or maybe this
function ChangeHealth() if script.Parent.Health <= 4 then -- == to <= b.Board1.Transparency = 1 end
end |
|
|
| Report Abuse |
|
|
moryo7
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 5028 |
|
|
| 07 Dec 2013 03:35 PM |
sorry mb wasn't thinking no it doesnt
✦мøяƴø子✦ |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 07 Dec 2013 03:38 PM |
local Window = script.Parent -- whats the need for? b = script.Parent.Boards
function ChangeHealth() if script.Parent.Health <= 4 then -- i mean you didnt use it here b.Board1.Transparency = 1 end
end
script.Parent.Changed:connect(ChangeHealth)
|
|
|
| Report Abuse |
|
|
BEART12
|
  |
| Joined: 22 Oct 2008 |
| Total Posts: 3190 |
|
|
| 07 Dec 2013 03:55 PM |
It needs to be equal and i found out its the
if script.Parent.Health == 4 then b.Board1.Transparency = 1
That is not working the .changed function works.
Thanks |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2013 03:56 PM |
local Window = script.Parent b = script.Parent.Boards
function ChangeHealth() if script.Parent.Health.Value == 4 then b.Board1.Transparency = 1 end end
script.Parent.Health.Changed:connect(ChangeHealth) |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2013 03:57 PM |
| What exactly do you want it to do? |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
| |
|
BEART12
|
  |
| Joined: 22 Oct 2008 |
| Total Posts: 3190 |
|
|
| 07 Dec 2013 03:59 PM |
| Silly me! i forgot .Value i knew it would be something silly thanks to all that helped. |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2013 04:27 PM |
| Are you trying to make it so if you like touch a brick, your health will be changed? |
|
|
| Report Abuse |
|
|