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
 

Re: How to test if something is a color3

Previous Thread :: Next Thread 
checkplate is not online. checkplate
Joined: 05 Jan 2016
Total Posts: 1379
24 Jan 2016 03:19 PM
title

#code return cntkillme.happy > false
Report Abuse
Aethex is not online. Aethex
Joined: 16 Oct 2011
Total Posts: 2193
24 Jan 2016 03:21 PM
you already got solutions on your last thread: http://forum.roblox.com/Forum/ShowPost.aspx?PostID=182324214

why are you posting this again?
Report Abuse
checkplate is not online. checkplate
Joined: 05 Jan 2016
Total Posts: 1379
24 Jan 2016 03:21 PM
No solutions

#code return cntkillme.happy > false
Report Abuse
Aethex is not online. Aethex
Joined: 16 Oct 2011
Total Posts: 2193
24 Jan 2016 03:26 PM
function IsColor3(a)
local a = pcall(function()
Instance.new('Color3Value').Value = a
end)
return a
end

that works fine and was posted on your last thread
Report Abuse
checkplate is not online. checkplate
Joined: 05 Jan 2016
Total Posts: 1379
24 Jan 2016 03:36 PM
Im not testing instances

function IsColor3(Test)
local a = pcall(function()
Instance.new('Color3Value').Value = a
end)

print(a)
return a
end

IsColor3(Color3.new(255/255,255/255,255/255))

> false

#code return cntkillme.happy > false
Report Abuse
rvox is not online. rvox
Joined: 18 Feb 2011
Total Posts: 5380
24 Jan 2016 03:39 PM
Instance.new("Color3Value").Value = Test
Report Abuse
checkplate is not online. checkplate
Joined: 05 Jan 2016
Total Posts: 1379
24 Jan 2016 03:41 PM
Do I need to delete that instance?

#code return cntkillme.happy > false
Report Abuse
rvox is not online. rvox
Joined: 18 Feb 2011
Total Posts: 5380
24 Jan 2016 03:42 PM
it is garbage collected so there's no need
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
24 Jan 2016 04:10 PM
https://github.com/ValkyrieRBXL/ValkyrieFramework/blob/bleeding-edge/Shared/Core/Components/DataTypes.mod.lua
Report Abuse
checkplate is not online. checkplate
Joined: 05 Jan 2016
Total Posts: 1379
24 Jan 2016 04:29 PM
lunate can you describe how that works cause that hurets my head

#code return cntkillme.happy > false
Report Abuse
cgjnm is not online. cgjnm
Joined: 22 Dec 2011
Total Posts: 2347
24 Jan 2016 04:40 PM
Try this: http://wiki.roblox.com/index.php?title=Function_dump/String_manipulation
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