of     1   

FauxHawke
#139026780Wednesday, July 02, 2014 10:19 PM GMT

I'm trying to make it so when you scroll, it changes what tool you have selected. game.StarterGui:SetCoreGuiEnabled("Backpack", false) player = script.Parent.Parent mouse = player:GetMouse() player.CameraMaxZoomDistance = 50 player.CameraMinZoomDistance = 50 mouse.WheelForward:connect(function() --what would i put here end) mouse.WheelBackward:connect(function() --what would i put here end) Any ideas?
smiley599
#139026857Wednesday, July 02, 2014 10:20 PM GMT

aha i made that 2 days ago so i do have ideas
FauxHawke
#139026917Wednesday, July 02, 2014 10:21 PM GMT

Can..a...you help me maybe?
smiley599
#139026975Wednesday, July 02, 2014 10:21 PM GMT

what is wrong with your fps it took 2 mins to load character and now its saying loading client da hel
FauxHawke
#139027202Wednesday, July 02, 2014 10:24 PM GMT

I'm fixing it, now can you help me?
FauxHawke
#139027682Wednesday, July 02, 2014 10:28 PM GMT

Can anyone help me at all?
FauxHawke
#139027902Wednesday, July 02, 2014 10:30 PM GMT

B1
FauxHawke
#139028310Wednesday, July 02, 2014 10:35 PM GMT

b2
Bebee2
#139028432Wednesday, July 02, 2014 10:36 PM GMT

-- Something like this... game.StarterGui:SetCoreGuiEnabled("Backpack", false) player = script.Parent.Parent mouse = player:GetMouse() player.CameraMaxZoomDistance = 50 player.CameraMinZoomDistance = 50 local i = 1 mouse.WheelForward:connect(function() if #player.Backpack:children()[i-1] and i > 1 then player.Character.Humanoid:UnequipTools() local tool = player.Backpack:children()[i] player.Character.Humanoid:EquipTool(tool) i = i + 1 elseif i == 1 then i = #player.Backpack:children() player.Character.Humanoid:UnequipTools() local tool = player.Backpack:children()[i] player.Character.Humanoid:EquipTool(tool) else i = #player.Backpack:children() end end) mouse.WheelBackward:connect(function() if #player.Backpack:children()[i+1] then player.Character.Humanoid:UnequipTools() local tool = player.Backpack:children()[i] player.Character.Humanoid:EquipTool(tool) i = i + 1 elseif #player.Backpack:children() < i then i = 1 player.Character.Humanoid:UnequipTools() local tool = player.Backpack:children()[i] player.Character.Humanoid:EquipTool(tool) else i = 1 end end)
FauxHawke
#139028649Wednesday, July 02, 2014 10:39 PM GMT

Players.Player1.Backpack.Test:8: attempt to get length of field '?' (a nil value) Players.Player1.Backpack.Test:23: attempt to get length of field '?' (a userdata value)
Bebee2
#139028907Wednesday, July 02, 2014 10:42 PM GMT

-- My bad game.StarterGui:SetCoreGuiEnabled("Backpack", false) player = script.Parent.Parent mouse = player:GetMouse() player.CameraMaxZoomDistance = 50 player.CameraMinZoomDistance = 50 local i = 1 mouse.WheelForward:connect(function() if player.Backpack:children()[i-1] and i > 1 then player.Character.Humanoid:UnequipTools() local tool = player.Backpack:children()[i] player.Character.Humanoid:EquipTool(tool) i = i + 1 elseif i == 1 then i = #player.Backpack:children() player.Character.Humanoid:UnequipTools() local tool = player.Backpack:children()[i] player.Character.Humanoid:EquipTool(tool) else i = #player.Backpack:children() end end) mouse.WheelBackward:connect(function() if player.Backpack:children()[i+1] then player.Character.Humanoid:UnequipTools() local tool = player.Backpack:children()[i] player.Character.Humanoid:EquipTool(tool) i = i + 1 elseif #player.Backpack:children() < i then i = 1 player.Character.Humanoid:UnequipTools() local tool = player.Backpack:children()[i] player.Character.Humanoid:EquipTool(tool) else i = 1 end end)
FauxHawke
#139032316Wednesday, July 02, 2014 11:17 PM GMT

Sweet, thanks man!!!
smiley599
#139032535Wednesday, July 02, 2014 11:20 PM GMT

I wonder how much of your FPS you're making yourself :)
FauxHawke
#139033142Wednesday, July 02, 2014 11:26 PM GMT

All of it, except for the meshes of course, and some maps.

    of     1