|
| 13 Aug 2016 11:57 AM |
I am new to scripting & I am having an issue with Conditionals, I don't know how to use things in Conditionals like Color3 or Vector3. I hope someone can reply and give me examples using those two (I have no idea what to call them, userdata? tuples?). For those confused by the word Conditional, it refers to if / else / elseif statements.
|
|
|
| Report Abuse |
|
|
|
| 13 Aug 2016 12:12 PM |
if part.Position == Vector3.new(0,0,0) then -- construct a new one to compare print("part is in the center of the game!") end
if button.Color3 == Color3.new(1,0,0) then print("button is red!") end
if part.BrickColor == BrickColor.new("Bright green") then print("part is Bright green!") end
|
|
|
| Report Abuse |
|
|
| |
|
|
| 13 Aug 2016 12:14 PM |
Thankyou so much, you don't believe how helpful that was despite how simple that piece of code seems. I will add you in credits for helpful forumers. :)
|
|
|
| Report Abuse |
|
|