Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- keys = _G.HotKeys
- UI = game:GetService("UserInputService")
- UI.InputBegan:Connect(function(input,pass)
- if not pass then return end
- key = input.KeyCode.Name
- input = input.Keyboard.Name
- pass = false
- for i,info in pairs(keys)
- local k = info[1]
- if key == k then pass = true break end
- end
- if pass then
- gui.Script.Event:FireServer("Equip",tonumber(key)
- end
- end)
- local selected = nil
- loca lastsel = nil
- elseif func == "Equip" then
- if f1 == 0 then f1 = 10 end
- if f1 >= 1 and 10 >= f1 then
- local tool = get("Tool")
- locam f = get("Frame",f1)
- local selected = [tool,f1,f,f.ImageColor3]
- if not lastsel then
- lastsel = selected
- elseif last and selected[2] == last[2] then
- selected = nil
- end
- count = 0
- while selected and selected[2] == last[2] do
- if count <= 1 then
- wait(.01)
- if count == 1 then
- selected[3].ImageColor3 = Color3.fromRGB(0,0,50)
- count = count+.01
- else
- count = count-.01
- end
- elseif count >= 0 then
- wait(.01)
- if count == 0 then
- selected[3].ImageColor3 = selected[4]
- count = count-.01
- else
- count = count+.01
- end
- end
- last
- end
- end
- end--don't need
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement