|
| 15 May 2014 03:12 PM |
Lets say you're making a script with settings, would you do:
-- Settings -- Setting1 = true Setting2 = false -- End Settings --
function Setting01() Instance.new("Part", game.Workspace) end if Setting1 == true then setting01() else print 'Setting1 is off'
function setting02() Instance.new("Fire", game.Workspace) end if setting02 == true then setting02 else print 'Setting2 is off'
Does it work like this? |
|
|
| Report Abuse |
|
|
| |
|
|
| 15 May 2014 04:12 PM |
| Yup, Ifs and variables. That's how it works. |
|
|
| Report Abuse |
|
|
powertool
|
  |
| Joined: 01 Feb 2008 |
| Total Posts: 3771 |
|
|
| 15 May 2014 04:14 PM |
| I've got >400 lines of gun code that's absolutely spiked with settings. And that's the way to do it. |
|
|
| Report Abuse |
|
|