|
| 12 Dec 2016 12:22 PM |
Hello!, Im trying to Reference more than one UI object, "Slot_One"
but I have four total slots and I was wondering if there is a way to reference all 4 of them intead of creating function for each slot individually. |
|
|
| Report Abuse |
|
|
|
| 12 Dec 2016 12:27 PM |
I should also note,
if Slot_One.Item.Value ~= "None" then
So, if the slots are in use, then make it look for another slot that is open, of the 4.
|
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
| |
|
|
| 12 Dec 2016 01:41 PM |
| ################################################################################################################################## |
|
|
| Report Abuse |
|
|
|
| 12 Dec 2016 01:42 PM |
To add on to what Time said:
local slo = {s, s2, s3, s4}
for i,v in pairs(slo) do --do something to each slot end
(Sorry roblox censored me probably because of the variables) |
|
|
| Report Abuse |
|
|