Bananacb
|
  |
| Joined: 13 Jun 2008 |
| Total Posts: 5188 |
|
|
| 13 May 2015 07:57 PM |
18:55:45.118 - Workspace.NHL Playoffs Script:37: attempt to compare two userdata values ---------------------------------------------------------------------------------------- while true do if game.Workspace.StarSpangledBanner.Value >= 1 then S = game.Workspace.StarSpangledBanner end if game.Workspace.OCanada.Value >=1 then O = game.Workspace.OCanada end if S < O then--------- This is where the error is, how to fix? StarSpangledBanner() local selectedsound = model:GetChildren()[math.random(#model:GetChildren())] repeat wait(0.1) until selectedsound.IsPaused == true wait (1) OCanada() repeat wait(0.1) until selectedsound.IsPaused == true wait (1) end if O < S then OCanada() local selectedsound = model:GetChildren()[math.random(#model:GetChildren())] repeat wait(0.1) until selectedsound.IsPaused == true wait (1) local selectedsound = model:GetChildren()[math.random(#model:GetChildren())] StarSpangledBanner() repeat wait(0.1) until selectedsound.IsPaused == true wait (1) end |
|
|
| Report Abuse |
|
|
Bananacb
|
  |
| Joined: 13 Jun 2008 |
| Total Posts: 5188 |
|
|
| 13 May 2015 07:58 PM |
This is the line that says error ...
if S < O then |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
| |
|
| |
|
|
| 13 May 2015 08:00 PM |
| Assuming both S and O are values, then S.Value and O.Value |
|
|
| Report Abuse |
|
|
Bananacb
|
  |
| Joined: 13 Jun 2008 |
| Total Posts: 5188 |
|
|
| 13 May 2015 08:01 PM |
| Okay I'll give that a try. |
|
|
| Report Abuse |
|
|
Bananacb
|
  |
| Joined: 13 Jun 2008 |
| Total Posts: 5188 |
|
|
| 13 May 2015 08:04 PM |
| Awesome it works. Thanks guys! |
|
|
| Report Abuse |
|
|