fun4nerd
|
  |
| Joined: 30 Oct 2013 |
| Total Posts: 4440 |
|
|
| 29 Aug 2015 09:31 AM |
if slots.Image1.Usable.Value == true then
end /\ for some reason this script doesn't work btw: all the guis are correct so don't ask me about that. Its a localscript but I don't think that has to do with anything |
|
|
| Report Abuse |
|
|
fun4nerd
|
  |
| Joined: 30 Oct 2013 |
| Total Posts: 4440 |
|
| |
|
|
| 29 Aug 2015 11:08 AM |
| You didn't add anything after then |
|
|
| Report Abuse |
|
|
fun4nerd
|
  |
| Joined: 30 Oct 2013 |
| Total Posts: 4440 |
|
|
| 29 Aug 2015 11:09 AM |
I added stuff in between if then I added stuff here end |
|
|
| Report Abuse |
|
|
| |
|
fun4nerd
|
  |
| Joined: 30 Oct 2013 |
| Total Posts: 4440 |
|
|
| 29 Aug 2015 11:18 AM |
-- slot manager -- manages the numba of slots and -- where to place the next item local sp = script.Parent local slots = sp.BackPack local UseSlot = sp.UseSlot local Slots = sp.Slots
while wait(0.25) do if slots.Image1:FindFirstChild("Usable").Value == true then UseSlot.Value = 1 Slots.Value = true else if slots.Image2.Usable.Value == true then UseSlot.Value = 2 Slots.Value = true else if slots.Image3.Usable.Value == true then UseSlot.Value = 3 Slots.Value = true else if slots.Image4.Usable.Value == true then UseSlot.Value = 4 Slots.Value = true else if slots.Image5.Usable.Value == true then UseSlot.Value = 5 Slots.Value = true else if slots.Image6.Usable.Value == true then UseSlot.Value = 6 Slots.Value = true else if slots.Image7.Usable.Value == true then UseSlot.Value = 7 Slots.Value = true else if slots.Image8.Usable.Value == true then UseSlot.Value = 8 Slots.Value = true else if slots.Image9.Usable.Value == true then UseSlot.Value = 9 Slots.Value = true else if slots.Image10.Usable.Value == true then UseSlot.Value = 10 Slots.Value = true else if slots.Image11.Usable.Value == true then UseSlot.Value = 11 Slots.Value = true else if slots.Image12.Usable.Value == true then UseSlot.Value = 12 Slots.Value = true else if slots.Image13.Usable.Value == true then UseSlot.Value = 13 Slots.Value = true else if slots.Image14.Usable.Value == true then UseSlot.Value = 14 Slots.Value = true else if slots.Image15.Usable.Value == true then UseSlot.Value = 15 Slots.Value = true else UseSlot.Value = 0 Slots.Value = false end end end end end end end end end end end end end end end end |
|
|
| Report Abuse |
|
|
fun4nerd
|
  |
| Joined: 30 Oct 2013 |
| Total Posts: 4440 |
|
|
| 29 Aug 2015 11:19 AM |
| Btw the script is in a gui |
|
|
| Report Abuse |
|
|
AstroCode
|
  |
| Joined: 09 Oct 2009 |
| Total Posts: 1122 |
|
|
| 29 Aug 2015 11:28 AM |
slots:FindFirstChild("Image1")
You can't index a child with numbers unless you use FindFirstChild. |
|
|
| Report Abuse |
|
|
|
| 29 Aug 2015 11:28 AM |
| Well don't put a space in between else if just put "elseif" |
|
|
| Report Abuse |
|
|
AstroCode
|
  |
| Joined: 09 Oct 2009 |
| Total Posts: 1122 |
|
|
| 29 Aug 2015 11:29 AM |
| Oh, and you also only need one end and make your "else if" an "elseif" |
|
|
| Report Abuse |
|
|
fun4nerd
|
  |
| Joined: 30 Oct 2013 |
| Total Posts: 4440 |
|
|
| 29 Aug 2015 11:29 AM |
| thanks guys let me see what I can do. :) |
|
|
| Report Abuse |
|
|