generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Script error help

Previous Thread :: Next Thread 
Bananacb is online. 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 is online. 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 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
13 May 2015 07:59 PM
if S.Value > O.Value then
Report Abuse
GeoVolcano is not online. GeoVolcano
Joined: 05 Jul 2012
Total Posts: 1433
13 May 2015 07:59 PM
S.Value
Report Abuse
GeoVolcano is not online. GeoVolcano
Joined: 05 Jul 2012
Total Posts: 1433
13 May 2015 08:00 PM
Assuming both S and O are values, then S.Value and O.Value
Report Abuse
Bananacb is online. Bananacb
Joined: 13 Jun 2008
Total Posts: 5188
13 May 2015 08:01 PM
Okay I'll give that a try.
Report Abuse
Bananacb is online. Bananacb
Joined: 13 Jun 2008
Total Posts: 5188
13 May 2015 08:04 PM
Awesome it works. Thanks guys!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image