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: Can anyone fix this?

Previous Thread :: Next Thread 
fun4nerd is not online. 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 is not online. fun4nerd
Joined: 30 Oct 2013
Total Posts: 4440
29 Aug 2015 10:52 AM
Anyone? Help please.
Report Abuse
JadenUndefined is not online. JadenUndefined
Joined: 18 Apr 2012
Total Posts: 304
29 Aug 2015 11:08 AM
You didn't add anything after then
Report Abuse
fun4nerd is not online. 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
JadenUndefined is not online. JadenUndefined
Joined: 18 Apr 2012
Total Posts: 304
29 Aug 2015 11:12 AM
Put the full code?
Report Abuse
fun4nerd is not online. 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 is not online. fun4nerd
Joined: 30 Oct 2013
Total Posts: 4440
29 Aug 2015 11:19 AM
Btw the script is in a gui
Report Abuse
AstroCode is not online. 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
JadenUndefined is not online. JadenUndefined
Joined: 18 Apr 2012
Total Posts: 304
29 Aug 2015 11:28 AM
Well don't put a space in between else if just put "elseif"
Report Abuse
AstroCode is not online. 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 is not online. 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
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