|
| 29 May 2015 07:27 PM |
There are no errors. But it won't do whats after then.
if game.Workspace.AwayOffsides.Value == true and game.Workspace.PuckAwaySides.Value == true then game.Workspace.display.Value = "Offsides" game.Workspace.ball:remove() end |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 29 May 2015 07:29 PM |
| if will only fire if both values are true |
|
|
| Report Abuse |
|
|
|
| 29 May 2015 07:30 PM |
| I know the values are both true still it doesn't do any of part after then |
|
|
| Report Abuse |
|
|
|
| 29 May 2015 07:31 PM |
It does if both values are true.
Another thing is :remove is deprecated; use :Destroy() instead. |
|
|
| Report Abuse |
|
|
booing
|
  |
| Joined: 04 May 2009 |
| Total Posts: 6594 |
|
|
| 29 May 2015 07:37 PM |
| False they serve differint purposes,In fact destroy will probably be removed soon. |
|
|
| Report Abuse |
|
|
|
| 29 May 2015 07:38 PM |
| Ok I need help then the codes at the stop its completely by it self in its own script how it is. But this script only works if both values turn true at the exact same time I need the script to be able to work if one turns true before the other |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 29 May 2015 07:40 PM |
local Away = game.Workspace:WaitForChild("AwayOffsides") local Puck = game.Workspace:WaitForChild("PuckAwaySides")
Away.Changed:connect(function(property) if Away.Value == true and Puck.Value == true then game.Workspace.display.Value = "Offsides" game.Workspace.ball:remove() end end)
Try this, I haven't tested it so it might have errors. |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 29 May 2015 07:41 PM |
| Oh wait you need something else now. Sorry. |
|
|
| Report Abuse |
|
|
|
| 29 May 2015 07:42 PM |
| YOU ARE THE MAN! It worked thank you! |
|
|
| Report Abuse |
|
|