Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Player = game.Players.LocalPlayer
- Mouse = Player:GetMouse()
- PlayerGui = Player:WaitForChild("PlayerGui")
- Screen = Instance.new("ScreenGui",PlayerGui)
- Key = {Down={},AllDown={},Byte={}}
- Guis = {}
- Mouse.KeyDown:connect(function(k)
- Key.Down[k]=true
- Key.AllDown[string.lower(k)]=true
- Key.Byte[string.byte(k)]=true
- Key.AllDown[string.upper(k)]=true end)
- Mouse.KeyUp:connect(function(k)
- Key.Down[k]=nil
- Key.AllDown[string.lower(k)]=nil
- Key.Byte[string.byte(k)]=nil
- Key.AllDown[string.upper(k)]=nil end)
- function NewC(table,name,func)
- table[name]=func
- end
- function glerp(a,b,c)
- local axs,axo,ays,ayo,bxs,bxo,bys,byo=a.X.Scale,a.X.Offset,a.Y.Scale,a.Y.Offset,b.X.Scale,b.X.Offset,b.Y.Scale,b.Y.Offset
- return UDim2.new(axs+(bxs-axs)*c,axo+(bxo-axo)*c,ays+(bys-ays)*c,ayo+(byo-ayo)*c)
- end
- Commands = {}
- NewC(Commands,"Kill",function(p)
- p.Character:breakJoints()
- end)
- function List(tab)
- for i,v in pairs(Guis) do
- v.TargetPostion = v.TargetPosition -UDim2.new(0,0,0,20)
- v.TTarget = 1
- end
- local num=0
- for i,v in pairs(tab) do
- local n = {}
- n.TTarget = 0
- n.TargetPosition = UDim2.new(1,-110,1,-num*30)
- local g = Instance.new("TextButton",Screen)
- g.Size = UDim2.new(0,100,0,20)
- g.Position = n.TargetPosition+UDim2.new(0,0,0,20)
- g.BackgroundTransparency = 0.8
- g.Text = i
- g.MouseButton1Click:connect(function()
- ypcall(function() v() end)
- end)
- end
- end
- function Open()
- if not Opened then
- Opened = true
- print("Opened")
- end
- wait() Opened = false
- end
- Mouse.KeyUp:connect(function(k)
- if k:lower()=="u" and Key.Byte[50] then
- Open()
- end
- if string.byte(k) == 50 and Key.AllDown.u then
- Open()
- end
- end)
- game:GetService("RunService").RenderStepped:connect(function()
- for i,v in pairs(Guis) do
- v.Gui.Position = glerp(v.Gui.Position,v.TargetPosition,0.2)
- v.Gui.BackgroundTransparency = glerp(v.Gui.BackgroundTransparency,v.TTarget,0.2)
- if v.Gui.BackgroundTransparency > 0.95 then
- v:Destroy()
- table.remove(Guis,i)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement