Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local Hub = Instance.new("ScreenGui")
- local BG = Instance.new("ImageLabel")
- local Close = Instance.new("TextButton")
- local UICorner = Instance.new("UICorner")
- local Minimize = Instance.new("TextButton")
- local UICorner_2 = Instance.new("UICorner")
- local Name = Instance.new("TextLabel")
- local UICorner_3 = Instance.new("UICorner")
- local Maximize = Instance.new("TextButton")
- local UICorner_4 = Instance.new("UICorner")
- local Tab = Instance.new("TextButton")
- local UICorner_5 = Instance.new("UICorner")
- local FirstFrame = Instance.new("Frame")
- local UICorner_6 = Instance.new("UICorner")
- local ScrollingFrame = Instance.new("ScrollingFrame")
- local UICorner_7 = Instance.new("UICorner")
- local Fling = Instance.new("TextButton")
- local UICorner_8 = Instance.new("UICorner")
- local OpenUI = Instance.new("TextButton")
- --Properties:
- local UserInputService = game:GetService("UserInputService")
- local runService = (game:GetService("RunService"));
- local gui = BG
- local dragging
- local dragInput
- local dragStart
- local startPos
- function Lerp(a, b, m)
- return a + (b - a) * m
- end;
- local lastMousePos
- local lastGoalPos
- local DRAG_SPEED = (8); -- // The speed of the UI darg.
- function Update(dt)
- if not (startPos) then return end;
- if not (dragging) and (lastGoalPos) then
- gui.Position = UDim2.new(startPos.X.Scale, Lerp(gui.Position.X.Offset, lastGoalPos.X.Offset, dt * DRAG_SPEED), startPos.Y.Scale, Lerp(gui.Position.Y.Offset, lastGoalPos.Y.Offset, dt * DRAG_SPEED))
- return
- end;
- local delta = (lastMousePos - UserInputService:GetMouseLocation())
- local xGoal = (startPos.X.Offset - delta.X);
- local yGoal = (startPos.Y.Offset - delta.Y);
- lastGoalPos = UDim2.new(startPos.X.Scale, xGoal, startPos.Y.Scale, yGoal)
- gui.Position = UDim2.new(startPos.X.Scale, Lerp(gui.Position.X.Offset, xGoal, dt * DRAG_SPEED), startPos.Y.Scale, Lerp(gui.Position.Y.Offset, yGoal, dt * DRAG_SPEED))
- end;
- gui.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = gui.Position
- lastMousePos = UserInputService:GetMouseLocation()
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- gui.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- runService.Heartbeat:Connect(Update)
- OpenUI.Visible = false
- Minimize.MouseButton1Down:Connect(function()
- BG:TweenSize(
- UDim2.new(0, 385, 0, 38),
- "In",
- "Quad",
- 0.7,
- false
- )
- Tab.Visible = false
- end)
- Maximize.MouseButton1Down:Connect(function()
- BG:TweenSize(
- UDim2.new(0, 657, 0, 357),
- "Out",
- "Quad",
- 0.7,
- false
- )
- wait(0.7)
- Tab.Visible = true
- end)
- Close.MouseButton1Down:Connect(function()
- BG.Visible = false
- OpenUI.Visible = true
- end)
- OpenUI.MouseButton1Down:Connect(function()
- BG.Visible = true
- OpenUI.Visible = false
- end)
- Tab.MouseButton1Down:Connect(function()
- FirstFrame.Visible = true
- end)
- Fling.MouseButton1Down:Connect(function()
- spawn(function()
- local message = Instance.new("Message",workspace)
- message.Text = "Loaded press z to execute inviseble , press x to respawn)"
- wait(2)
- message:Destroy()
- end)
- local mouse = game.Players.LocalPlayer:GetMouse()
- local groot = nil
- mouse.KeyDown:connect(function(k)
- if k == "z" then
- spawn(function()
- local message = Instance.new("Message",workspace)
- message.Text = "Fe Invisible Fling By Diemiers#4209 Loaded (wait 11 seconds to load)"
- wait(11)
- message:Destroy()
- end)
- local ch = game.Players.LocalPlayer.Character
- local prt=Instance.new("Model", workspace)
- local z1 = Instance.new("Part", prt)
- z1.Name="Torso"
- z1.CanCollide = false
- z1.Anchored = true
- local z2 =Instance.new("Part", prt)
- z2.Name="Head"
- z2.Anchored = true
- z2.CanCollide = false
- local z3 =Instance.new("Humanoid", prt)
- z3.Name="Humanoid"
- z1.Position = Vector3.new(0,9999,0)
- z2.Position = Vector3.new(0,9991,0)
- game.Players.LocalPlayer.Character=prt
- wait(5)
- game.Players.LocalPlayer.Character=ch
- wait(6)
- local plr = game.Players.LocalPlayer
- mouse = plr:GetMouse()
- local Hum = Instance.new("Humanoid")
- Hum.Parent = game.Players.LocalPlayer.Character
- local root = game.Players.LocalPlayer.Character.HumanoidRootPart
- for i,v in pairs(plr.Character:GetChildren()) do
- if v ~= root and v.Name ~= "Humanoid" then
- v:Destroy()
- end
- end
- workspace.CurrentCamera.CameraSubject = root
- local se = Instance.new("SelectionBox",root)
- se.Adornee = root
- game:GetService('RunService').Stepped:connect(function()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = false
- end)
- game:GetService('RunService').RenderStepped:connect(function()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = false
- end)
- power = 999999 -- change this to make it more or less powerful
- power = power*10
- ---
- wait(.1)
- local bambam = Instance.new("BodyThrust")
- bambam.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
- bambam.Force = Vector3.new(power,0,power)
- bambam.Location = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
- local plr = game.Players.LocalPlayer
- local torso = root
- local flying = true
- local deb = true
- local ctrl = {f = 0, b = 0, l = 0, r = 0}
- local lastctrl = {f = 0, b = 0, l = 0, r = 0}
- local maxspeed = 120
- local speed = 15
- ---local bambam = Instance.new("BodyThrust")
- ---bambam.Parent = torso
- --bambam.Force = Vector3.new(9999999,0,9999999)
- --bambam.Location = torso.Position
- ---
- groot = root
- function Fly()
- local bg = Instance.new("BodyGyro", torso)
- bg.P = 9e4
- bg.maxTorque = Vector3.new(0, 0, 0)
- bg.cframe = torso.CFrame
- local bv = Instance.new("BodyVelocity", torso)
- bv.velocity = Vector3.new(0,0,0)
- bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
- repeat wait()
- if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
- speed = speed+.2
- if speed > maxspeed then
- speed = maxspeed
- end
- elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
- speed = speed-1
- if speed < 0 then
- speed = 0
- end
- end
- if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
- bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
- lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
- elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
- bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
- else
- bv.velocity = Vector3.new(0,0.1,0)
- end
- until not flying
- ctrl = {f = 0, b = 0, l = 0, r = 0}
- lastctrl = {f = 0, b = 0, l = 0, r = 0}
- speed = 0
- bg:Destroy()
- bv:Destroy()
- end
- mouse.KeyDown:connect(function(key)
- if key:lower() == "e" then
- if flying then flying = false
- else
- flying = true
- Fly()
- end
- elseif key:lower() == "w" then
- ctrl.f = 1
- elseif key:lower() == "s" then
- ctrl.b = -1
- elseif key:lower() == "a" then
- ctrl.l = -1
- elseif key:lower() == "d" then
- ctrl.r = 1
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key:lower() == "w" then
- ctrl.f = 0
- elseif key:lower() == "s" then
- ctrl.b = 0
- elseif key:lower() == "a" then
- ctrl.l = 0
- elseif key:lower() == "d" then
- ctrl.r = 0
- elseif key:lower() == "r" then
- end
- end)
- Fly()
- elseif k == "x" then
- spawn(function()
- local message = Instance.new("Message",workspace)
- message.Text = "Respawning dont spam"
- wait(1)
- message:Destroy()
- end)
- local saved = groot.Position
- local ch = game.Players.LocalPlayer.Character
- local prt=Instance.new("Model", workspace)
- local z1 = Instance.new("Part", prt)
- z1.Name="Torso"
- z1.CanCollide = false
- z1.Anchored = true
- local z2 =Instance.new("Part", prt)
- z2.Name="Head"
- z2.Anchored = true
- z2.CanCollide = false
- local z3 =Instance.new("Humanoid", prt)
- z3.Name="Humanoid"
- z1.Position = Vector3.new(0,9999,0)
- z2.Position = Vector3.new(0,9991,0)
- game.Players.LocalPlayer.Character=prt
- wait(5)
- game.Players.LocalPlayer.Character=ch
- local poop = nil
- repeat wait() poop = game.Players.LocalPlayer.Character:FindFirstChild("Head") until poop ~= nil
- wait(1)
- game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(saved)
- end
- end)
- end)
- Hub.Name = "Hub"
- Hub.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- Hub.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- BG.Name = "BG"
- BG.Parent = Hub
- BG.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- BG.BackgroundTransparency = 1.000
- BG.Position = UDim2.new(0.278911561, 0, 0.0376213491, 0)
- BG.Size = UDim2.new(0, 657, 0, 357)
- BG.Image = "http://www.roblox.com/asset/?id=11580582019"
- Close.Name = "Close"
- Close.Parent = BG
- Close.BackgroundColor3 = Color3.fromRGB(59, 59, 59)
- Close.BackgroundTransparency = 1.000
- Close.Position = UDim2.new(0.933028936, 0, 0.0388155282, 0)
- Close.Size = UDim2.new(0, 32, 0, 29)
- Close.Font = Enum.Font.Unknown
- Close.Text = "X"
- Close.Font = "Kalam"
- Close.TextColor3 = Color3.fromRGB(255, 255, 255)
- Close.TextScaled = true
- Close.TextSize = 14.000
- Close.TextWrapped = true
- UICorner.CornerRadius = UDim.new(0, 20)
- UICorner.Parent = Close
- Minimize.Name = "Minimize"
- Minimize.Parent = BG
- Minimize.BackgroundColor3 = Color3.fromRGB(59, 59, 59)
- Minimize.BackgroundTransparency = 1.000
- Minimize.Position = UDim2.new(0.84322679, 0, 0.0388155282, 0)
- Minimize.Size = UDim2.new(0, 32, 0, 29)
- Minimize.Font = Enum.Font.Unknown
- Minimize.Text = "-"
- Minimize.Font = "Kalam"
- Minimize.TextColor3 = Color3.fromRGB(255, 255, 255)
- Minimize.TextScaled = true
- Minimize.TextSize = 14.000
- Minimize.TextWrapped = true
- UICorner_2.CornerRadius = UDim.new(0, 20)
- UICorner_2.Parent = Minimize
- Name.Name = "Name"
- Name.Parent = BG
- Name.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Name.BackgroundTransparency = 1.000
- Name.Position = UDim2.new(-0,1, 0, 0.0212084819, 0)
- Name.Size = UDim2.new(0, 164, 0, 40)
- Name.Font = Enum.Font.Unknown
- Name.Text = "Invisible Fling"
- Name.Font = "Kalam"
- Name.TextColor3 = Color3.fromRGB(255, 255, 255)
- Name.TextScaled = true
- Name.TextSize = 14.000
- Name.TextWrapped = true
- UICorner_3.CornerRadius = UDim.new(0, 5)
- UICorner_3.Parent = BG
- Maximize.Name = "Maximize"
- Maximize.Parent = BG
- Maximize.BackgroundColor3 = Color3.fromRGB(59, 59, 59)
- Maximize.BackgroundTransparency = 1.000
- Maximize.Position = UDim2.new(0.891933024, 0, 0.0360144079, 0)
- Maximize.Size = UDim2.new(0, 32, 0, 29)
- Maximize.Font = Enum.Font.Unknown
- Maximize.Text = "M"
- Maximize.Font = "Kalam"
- Maximize.TextColor3 = Color3.fromRGB(255, 255, 255)
- Maximize.TextScaled = true
- Maximize.TextSize = 14.000
- Maximize.TextWrapped = true
- UICorner_4.CornerRadius = UDim.new(0, 20)
- UICorner_4.Parent = Maximize
- Tab.Name = "Tab"
- Tab.Parent = BG
- Tab.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
- Tab.BackgroundTransparency = 0.600
- Tab.Position = UDim2.new(0.0140403509, 0, 0.164032117, 0)
- Tab.Size = UDim2.new(0, 164, 0, 40)
- Tab.Font = Enum.Font.Unknown
- Tab.Text = "FlingTab"
- Tab.Font = "Kalam"
- Tab.TextColor3 = Color3.fromRGB(255, 255, 255)
- Tab.TextScaled = true
- Tab.TextSize = 14.000
- Tab.TextWrapped = true
- UICorner_5.Parent = Tab
- FirstFrame.Name = "FirstFrame"
- FirstFrame.Parent = Tab
- FirstFrame.BackgroundColor3 = Color3.fromRGB(53, 53, 53)
- FirstFrame.Position = UDim2.new(1.06707335, 0, -0.0249998085, 0)
- FirstFrame.Size = UDim2.new(0, 463, 0, 292)
- FirstFrame.Visible = false
- UICorner_6.Parent = FirstFrame
- ScrollingFrame.Parent = FirstFrame
- ScrollingFrame.Active = true
- ScrollingFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ScrollingFrame.BackgroundTransparency = 1.000
- ScrollingFrame.Size = UDim2.new(0, 463, 0, 292)
- UICorner_7.Parent = ScrollingFrame
- Fling.Name = "Fling"
- Fling.Parent = ScrollingFrame
- Fling.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
- Fling.BackgroundTransparency = 1.000
- Fling.Position = UDim2.new(0.022107631, 0, 0.0690249205, 0)
- Fling.Size = UDim2.new(0, 117, 0, 41)
- Fling.Font = Enum.Font.Unknown
- Fling.Text = "Fling"
- Fling.Font = "Kalam"
- Fling.TextColor3 = Color3.fromRGB(255, 255, 255)
- Fling.TextScaled = true
- Fling.TextSize = 14.000
- Fling.TextWrapped = true
- UICorner_8.Parent = Fling
- OpenUI.Name = "OpenUI"
- OpenUI.Parent = Hub
- OpenUI.BackgroundColor3 = Color3.fromRGB(85, 85, 85)
- OpenUI.Position = UDim2.new(0, 0, 0.74878639, 0)
- OpenUI.Size = UDim2.new(0, 200, 0, 50)
- OpenUI.Font = Enum.Font.Unknown
- OpenUI.Text = "Open UI"
- OpenUI.Font = "Kalam"
- OpenUI.TextColor3 = Color3.fromRGB(255, 255, 255)
- OpenUI.TextScaled = true
- OpenUI.TextSize = 14.000
- OpenUI.TextWrapped = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement