Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[Fling GUI]]--
- --[[Made by topit for the Jeff GUI]]--
- --[[v1.0.4 HOTFIX 4/21/2021]]--
- --Fixed the close button color being wrong
- --Added smooth dragging
- --Removed unused variables
- --[[v1.0.3 UPDATE 4/19/2021]]--
- --Updated themes to be blockify's themes
- --Removed unused / deprecated features such as qfling, theme box, etc.
- --Made fix character compatible with both rig types (it had two different versions for each type)
- --Added velocity breaking after fixing character and stopping fling
- --Added novertgain module that might help
- --Made number grabbing in the speedbox better
- --Probably some performance improvements
- --[[v1.0.2.3 HOTFIX 3/13/2021]]--
- --Updated fix player so the teleportation works outside of your client
- --Updated fix player to have a platform incase anchoring does not work
- --Added a suggestion for Survive the disasters
- --[[v1.0.2.2 HOTFIX 3/11/2021]]--
- --Fixed R15 not being compatible with fix player
- --Updated fix player to hopefully work every time + send you to a safe location while fixing
- --Added a suggestion for Build a Boat for Treasure
- --[[v1.0.2.1 HOTFIX 2/25/2021]]--
- --Fixed a variable issue
- --Added a few more suggestions for games
- --[[v1.0.2 UPDATE 2/22/2021]]--
- --Updated the themes to make them look better
- --Updated FixPlayer to work more often
- --Fixed the textlabels having a visible box when not using the jeff standard theme
- --Fixed ServerKek to not break
- --Fixed ServerKek enable text appearing after the disable text
- --Fixed the suggestiontext not displaying properly if you arent playing on a supported game
- --[[variables:]]--
- local PlayerService = game:GetService("Players")--:GetPlayers()
- local TweenService = game:GetService("TweenService")
- local RunService = game:GetService("RunService")
- local UserInputService = game:GetService("UserInputService")
- local plr = PlayerService.LocalPlayer
- local mouse = plr:GetMouse()
- local BodyThrust = nil
- local Dragging = {}
- local Suggestions = {
- 2298830673, 300, 365, --gamier (test game)
- 1537690962, 250, 350, --bee swarm sim
- 5580097107, 300, 400, --frappe
- 2202352383, 275, 350, --super power training sim
- 142823291, 350, 425, --murder mystery 2
- 155615604, 273, 462, --prison life
- 1990228024, 200, 235, --bloxton hotels
- 189707, 250, 325, --natural disaster survival
- 230362888, 265, 415, --the normal elevator (may not work)
- 5293755937, 335, 435, --speedrun sim
- 537413528, 300, 350, --build a boat (may not work)
- 18540115, 300, 425, --survive the disasters
- 2041312716, 350, 465 --Ragdoll engine
- }
- local version = "v1.0.4"
- local font = Enum.Font.FredokaOne
- local AxisPositionX = {
- 0.05,
- 0.35,
- 0.65
- }
- local AxisPositionY = {
- 40, --edit fling speed
- 90, --toggle fling types (normal, qfling, serverkek)
- 140, --extra (respawn)
- 190, --edit gui settings (hotkey, theme)
- 240
- }
- local Fling = {
- false, --toggle
- "", --hotkey
- 300, --speed
- false, --server
- false --stop vertfling
- }
- --[[themes:]]--
- local Theme_JeffStandard = {
- Color3.fromRGB(15, 25, 35),
- Color3.fromRGB(10, 20, 30),
- Color3.fromRGB(27, 42, 53),
- Color3.fromRGB(25, 35, 45),
- Color3.fromRGB(20, 30, 40),
- Color3.fromRGB(25, 65, 45),
- Color3.fromRGB(255, 255, 255),
- Color3.fromRGB(245, 245, 255),
- Color3.fromRGB(155, 155, 255)
- }
- local Theme_Dark = {
- Color3.fromRGB(25, 25, 25), --Top bar
- Color3.fromRGB(10, 10, 10), --Background
- Color3.fromRGB(40, 40, 40), --Border color
- Color3.fromRGB(35, 35, 35), --Button background
- Color3.fromRGB(20, 20, 20), --Unused
- Color3.fromRGB(25, 100, 45), --Button highlight
- Color3.fromRGB(255, 255, 255),--Text title
- Color3.fromRGB(245, 245, 255),--Text generic
- Color3.fromRGB(155, 155, 255) --Text highlight
- }
- local Theme_Steel = {
- Color3.fromRGB(25, 25, 35), --Top bar
- Color3.fromRGB(10, 10, 20), --Background
- Color3.fromRGB(40, 40, 50), --Border color
- Color3.fromRGB(35, 35, 45), --Button background
- Color3.fromRGB(20, 20, 25), --Unused
- Color3.fromRGB(25, 100, 55), --Button highlight
- Color3.fromRGB(255, 255, 255),--Text title
- Color3.fromRGB(245, 245, 255),--Text generic
- Color3.fromRGB(155, 155, 255) --Text highlight
- }
- local Theme_Rust = {
- Color3.fromRGB(45, 25, 25),
- Color3.fromRGB(30, 10, 10),
- Color3.fromRGB(60, 40, 40),
- Color3.fromRGB(55, 35, 35),
- Color3.fromRGB(40, 20, 20),
- Color3.fromRGB(45, 100, 45),
- Color3.fromRGB(255, 255, 255),
- Color3.fromRGB(255, 245, 255),
- Color3.fromRGB(175, 155, 255)
- }
- local Theme_Violet = {
- Color3.fromRGB(35, 25, 45), --Top bar
- Color3.fromRGB(20, 10, 30), --Background
- Color3.fromRGB(50, 40, 60), --Border color
- Color3.fromRGB(45, 35, 55), --Button background
- Color3.fromRGB(30, 20, 40), --Unused
- Color3.fromRGB(35, 100, 65), --Button highlight
- Color3.fromRGB(255, 255, 255),--Text title
- Color3.fromRGB(245, 245, 255),--Text generic
- Color3.fromRGB(155, 155, 255) --Text highlight
- }
- local Theme_Space = {
- Color3.fromRGB(10, 10, 10), --Top bar
- Color3.fromRGB(0, 0, 0), --Background
- Color3.fromRGB(20, 20, 20), --Border color
- Color3.fromRGB(15, 15, 15), --Button background
- Color3.fromRGB(5, 5, 5), --Unused
- Color3.fromRGB(20, 25, 50), --Button highlight
- Color3.fromRGB(255, 255, 255),--Text title
- Color3.fromRGB(245, 245, 255),--Text generic
- Color3.fromRGB(155, 155, 255) --Text highlight
- }
- local Theme_SynX = {
- Color3.fromRGB(75, 75, 75), --Top bar
- Color3.fromRGB(45, 45, 45), --Background
- Color3.fromRGB(45, 45, 45), --Border color
- Color3.fromRGB(75, 75, 75), --Button background
- Color3.fromRGB(0, 0, 5), --Unused
- Color3.fromRGB(150, 75, 20), --Button highlight
- Color3.fromRGB(255, 255, 255),--Text title
- Color3.fromRGB(245, 245, 255),--Text generic
- Color3.fromRGB(155, 155, 255) --Text highlight
- }
- local SelectedTheme = math.random(1,6)
- if SelectedTheme == 1 then
- SelectedTheme = Theme_Steel
- elseif SelectedTheme == 2 then
- SelectedTheme = Theme_Dark
- elseif SelectedTheme == 3 then
- SelectedTheme = Theme_Rust
- elseif SelectedTheme == 4 then
- SelectedTheme = Theme_Violet
- elseif SelectedTheme == 5 then
- SelectedTheme = Theme_Space
- elseif SelectedTheme == 6 then
- if syn then
- SelectedTheme = Theme_SynX
- else
- SelectedTheme = Theme_JeffStandard
- end
- end
- --[[instances:]]--
- local ScreenGui = Instance.new("ScreenGui")
- local TitleBar = Instance.new("Frame")
- local Shadow = Instance.new("Frame")
- local Menu = Instance.new("ScrollingFrame")
- local TitleText = Instance.new("TextLabel")
- local TitleTextShadow = Instance.new("TextLabel")
- local CreditText = Instance.new("TextLabel")
- local SuggestionText = Instance.new("TextLabel")
- local SpeedBox = Instance.new("TextBox")
- local Hotkey = Instance.new("TextBox")
- local SpeedUp = Instance.new("TextButton")
- local SpeedDown = Instance.new("TextButton")
- local ToggleFling = Instance.new("TextButton")
- local ToggleServerKill = Instance.new("TextButton")
- local NoVertGain = Instance.new("TextButton")
- local Respawn = Instance.new("TextButton")
- local CloseButton = Instance.new("TextButton")
- --local BodyThrust = Instance.new("BodyThrust")
- ScreenGui.Name = "JeffFling"
- ScreenGui.Parent = game.CoreGui
- ScreenGui.Enabled = true
- TitleBar.Name = "Title Bar"
- TitleBar.Parent = ScreenGui
- TitleBar.BackgroundColor3 = SelectedTheme[1]
- TitleBar.BorderColor3 = SelectedTheme[3]
- TitleBar.Position = UDim2.new(-0.3, 0, 0.7, 0)
- TitleBar.Size = UDim2.new(0, 400, 0, 250)
- TitleBar.Draggable = true
- TitleBar.Active = true
- TitleBar.Selectable = true
- TitleBar.ZIndex = 100
- Shadow.Name = "Shadow"
- Shadow.Parent = TitleBar
- Shadow.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Shadow.BackgroundTransparency = 0.5
- Shadow.BorderSizePixel = 0
- Shadow.Position = UDim2.new(0, 5, 0, 5)
- Shadow.Size = TitleBar.Size
- Shadow.ZIndex = 50
- Menu.Name = "Menu"
- Menu.Parent = TitleBar
- Menu.BackgroundColor3 = SelectedTheme[2]
- Menu.BorderColor3 = SelectedTheme[3]
- Menu.AnchorPoint = Vector2.new(0,0)
- Menu.Position = UDim2.new(0, 0, 0, 50)
- Menu.Size = UDim2.new(0, 400, 0, 200)
- Menu.CanvasSize = UDim2.new(0, TitleBar.Size.X, 0, 325)
- Menu.ScrollBarImageTransparency = 0.5
- Menu.ZIndex = 200
- TitleText.Name = "Title Text"
- TitleText.Parent = TitleBar
- TitleText.AnchorPoint = Vector2.new(0, 0)
- TitleText.Position = UDim2.new(0, 100, 0, 25)
- TitleText.Font = font
- TitleText.Text = "Fling GUI "..version
- TitleText.TextColor3 = SelectedTheme[8]
- TitleText.TextSize = 28
- TitleText.ZIndex = 300
- TitleText.BackgroundTransparency = 1
- TitleTextShadow.Name = "Shadow"
- TitleTextShadow.Parent = TitleText
- TitleTextShadow.Font = font
- TitleTextShadow.Text = "Fling GUI "..version
- TitleTextShadow.TextSize = 28
- TitleTextShadow.TextColor3 = Color3.fromRGB(0, 0, 0)
- TitleTextShadow.TextTransparency = 0.5
- TitleTextShadow.Position = UDim2.new(0, 5, 0, 5)
- TitleTextShadow.ZIndex = 250
- TitleTextShadow.BackgroundTransparency = 1
- SuggestionText.Name = "Suggestion Text"
- SuggestionText.Parent = Menu
- SuggestionText.Position = UDim2.new(0, 20, 0, 250)
- SuggestionText.Font = font
- SuggestionText.Text = "e"
- SuggestionText.TextColor3 = SelectedTheme[7]
- SuggestionText.TextSize = 24
- SuggestionText.TextXAlignment = Enum.TextXAlignment.Left
- SuggestionText.ZIndex = 300
- SuggestionText.BackgroundTransparency = 1
- CreditText.Name = "Credit Text"
- CreditText.Parent = Menu
- CreditText.Position = UDim2.new(0, 20, 0, 300)
- CreditText.Font = font
- CreditText.Text = "Made by topit"
- CreditText.TextColor3 = SelectedTheme[7]
- CreditText.TextSize = 20
- CreditText.TextXAlignment = Enum.TextXAlignment.Left
- CreditText.ZIndex = 300
- CreditText.BackgroundTransparency = 1
- SpeedBox.Name = "Speed setting"
- SpeedBox.Parent = Menu
- SpeedBox.BackgroundColor3 = SelectedTheme[4]
- SpeedBox.BorderColor3 = SelectedTheme[3]
- SpeedBox.TextColor3 = SelectedTheme[7]
- SpeedBox.Position = UDim2.new(AxisPositionX[1], 0, 0, AxisPositionY[1])
- SpeedBox.Size = UDim2.new(0, 100, 0, 25)
- SpeedBox.Font = Enum.Font.FredokaOne
- SpeedBox.Text = "Speed: "..Fling[3]
- SpeedBox.PlaceholderText = "Enter custom speed"
- SpeedBox.TextScaled = true
- SpeedBox.ZIndex = 300
- Hotkey.Name = "Custom Hotkey"
- Hotkey.Parent = Menu
- Hotkey.BackgroundColor3 = SelectedTheme[4]
- Hotkey.BorderColor3 = SelectedTheme[3]
- Hotkey.TextColor3 = SelectedTheme[7]
- Hotkey.Position = UDim2.new(AxisPositionX[2], 0, 0, AxisPositionY[3])
- Hotkey.Size = UDim2.new(0, 100, 0, 25)
- Hotkey.Font = Enum.Font.FredokaOne
- Hotkey.Text = "Enter new hotkey"
- Hotkey.PlaceholderText = "Enter new hotkey"
- Hotkey.TextScaled = true
- Hotkey.ZIndex = 300
- SpeedUp.Name = "Speed Up"
- SpeedUp.Parent = Menu
- SpeedUp.BackgroundColor3 = SelectedTheme[4]
- SpeedUp.BorderColor3 = SelectedTheme[3]
- SpeedUp.TextColor3 = SelectedTheme[7]
- SpeedUp.Position = UDim2.new((AxisPositionX[2]), 0, 0, (AxisPositionY[1]))
- SpeedUp.Size = UDim2.new(0, 100, 0, 25)
- SpeedUp.Font = Enum.Font.FredokaOne
- SpeedUp.Text = "↑"
- SpeedUp.TextScaled = true
- SpeedUp.ZIndex = 300
- SpeedDown.Name = "Speed Down"
- SpeedDown.Parent = Menu
- SpeedDown.BackgroundColor3 = SelectedTheme[4]
- SpeedDown.BorderColor3 = SelectedTheme[3]
- SpeedDown.TextColor3 = SelectedTheme[7]
- SpeedDown.Position = UDim2.new((AxisPositionX[3]), 0, 0, (AxisPositionY[1]))
- SpeedDown.Size = UDim2.new(0, 100, 0, 25)
- SpeedDown.Font = Enum.Font.FredokaOne
- SpeedDown.Text = "↓"
- SpeedDown.TextScaled = true
- SpeedDown.ZIndex = 300
- ToggleFling.Name = "Fling toggle"
- ToggleFling.Parent = Menu
- ToggleFling.BackgroundColor3 = SelectedTheme[4]
- ToggleFling.BorderColor3 = SelectedTheme[3]
- ToggleFling.TextColor3 = SelectedTheme[7]
- ToggleFling.Position = UDim2.new((AxisPositionX[1]), 0, 0, (AxisPositionY[2]))
- ToggleFling.Size = UDim2.new(0, 100, 0, 25)
- ToggleFling.Font = Enum.Font.FredokaOne
- ToggleFling.Text = "Toggle fling"
- ToggleFling.TextScaled = true
- ToggleFling.ZIndex = 300
- Respawn.Name = "Respawn"
- Respawn.Parent = Menu
- Respawn.BackgroundColor3 = SelectedTheme[4]
- Respawn.BorderColor3 = SelectedTheme[3]
- Respawn.TextColor3 = SelectedTheme[7]
- Respawn.Position = UDim2.new((AxisPositionX[1]), 0, 0, (AxisPositionY[3]))
- Respawn.Size = UDim2.new(0, 100, 0, 25)
- Respawn.Font = Enum.Font.FredokaOne
- Respawn.Text = "Fix player"
- Respawn.TextScaled = true
- Respawn.ZIndex = 300
- NoVertGain.Name = "NoVertGain"
- NoVertGain.Parent = Menu
- NoVertGain.BackgroundColor3 = SelectedTheme[4]
- NoVertGain.BorderColor3 = SelectedTheme[3]
- NoVertGain.TextColor3 = SelectedTheme[7]
- NoVertGain.Position = UDim2.new((AxisPositionX[2]), 0, 0, (AxisPositionY[2]))
- NoVertGain.Size = UDim2.new(0, 100, 0, 25)
- NoVertGain.Font = Enum.Font.FredokaOne
- NoVertGain.Text = "Soften vertical fling"
- NoVertGain.TextScaled = true
- NoVertGain.ZIndex = 300
- ToggleServerKill.Name = ""
- ToggleServerKill.Parent = Menu
- ToggleServerKill.BackgroundColor3 = SelectedTheme[4]
- ToggleServerKill.BorderColor3 = SelectedTheme[3]
- ToggleServerKill.TextColor3 = SelectedTheme[7]
- ToggleServerKill.Position = UDim2.new((AxisPositionX[3]), 0, 0, (AxisPositionY[2]))
- ToggleServerKill.Size = UDim2.new(0, 100, 0, 25)
- ToggleServerKill.Font = Enum.Font.FredokaOne
- ToggleServerKill.Text = "Kek server"
- ToggleServerKill.TextScaled = true
- ToggleServerKill.ZIndex = 300
- CloseButton.Name = "Close Button"
- CloseButton.AnchorPoint = Vector2.new(1, 0)
- CloseButton.Parent = TitleBar
- CloseButton.BackgroundColor3 = SelectedTheme[4]
- CloseButton.BorderColor3 = SelectedTheme[3]
- CloseButton.TextColor3 = SelectedTheme[7]
- CloseButton.Position = UDim2.new(1, 0, 0, 0)
- CloseButton.Size = UDim2.new(0, 25, 0, 25)
- CloseButton.Font = Enum.Font.FredokaOne
- CloseButton.Text = "X"
- CloseButton.ZIndex = 300
- CloseButton.TextSize = 14
- --BodyThrust.Name = "Power"
- --BodyThrust.Parent = plr.Character.Torso
- --BodyThrust.Force = Vector3.new(0, 0, 0)
- --BodyThrust.Location = Vector3.new(0, 0, 0)
- --[[functions:]]--
- local function DisplayText(title, text, duration)
- duration = duration or 1
- game.StarterGui:SetCore("SendNotification",
- {
- Title = title;
- Text = text;
- Icon = "";
- Duration = duration;
- }
- )
- end
- local function DisplaySuggestion()
- for i,v in pairs(Suggestions) do
- if v >= 9999 and v == game.PlaceId then
- DisplayText("Detected current game!","Suggested speed: "..Suggestions[i+1].." - "..Suggestions[i+2])
- SuggestionText.Text = "Suggested speed: "..Suggestions[i+1].." - "..Suggestions[i+2]
- end
- end
- if SuggestionText.Text == "e" then
- SuggestionText.Text = "No suggestion for this game"
- end
- end
- local function GetRigType()
- if plr.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
- return Enum.HumanoidRigType.R15
- elseif plr.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
- return Enum.HumanoidRigType.R6
- else
- return nil
- end
- end
- local function GetDeadState(player)
- if player.Character.Humanoid:GetState() == Enum.HumanoidStateType.Dead then
- return true
- else
- return false
- end
- end
- local function EnableNoClip()
- if GetDeadState(plr) == false then
- if GetRigType() == Enum.HumanoidRigType.R6 then
- plr.Character:FindFirstChild("Torso").CanCollide = false
- plr.Character:FindFirstChild("Head").CanCollide = false
- plr.Character:FindFirstChild("HumanoidRootPart").CanCollide = false
- elseif GetRigType() == Enum.HumanoidRigType.R15 then
- plr.Character:FindFirstChild("UpperTorso").CanCollide = false
- plr.Character:FindFirstChild("LowerTorso").CanCollide = false
- plr.Character:FindFirstChild("Head").CanCollide = false
- plr.Character:FindFirstChild("HumanoidRootPart").CanCollide = false
- end
- end
- end
- local function DisableNoClip()
- if GetDeadState(plr) == false then
- if GetRigType() == Enum.HumanoidRigType.R6 then
- plr.Character:FindFirstChild("Torso").CanCollide = true
- plr.Character:FindFirstChild("Head").CanCollide = true
- plr.Character:FindFirstChild("HumanoidRootPart").CanCollide = true
- elseif GetRigType() == Enum.HumanoidRigType.R15 then
- plr.Character:FindFirstChild("UpperTorso").CanCollide = true
- plr.Character:FindFirstChild("LowerTorso").CanCollide = true
- plr.Character:FindFirstChild("Head").CanCollide = true
- plr.Character:FindFirstChild("HumanoidRootPart").CanCollide = true
- end
- end
- end
- local function OpenObject(object)
- local OpenAnim = TweenService:Create(
- object,
- TweenInfo.new(0.25, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out), --Enum.EasingStyle.Linear, Enum.EasingDirection.In
- {Size = UDim2.new(0, 110, 0, 35), BackgroundColor3 = SelectedTheme[6] }
- )
- OpenAnim:Play()
- end
- local function CloseObject(object)
- local CloseAnim = TweenService:Create(
- object,
- TweenInfo.new(0.25, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out),
- {Size = UDim2.new(0, 100, 0, 25), BackgroundColor3 = SelectedTheme[4] }
- )
- CloseAnim:Play()
- end
- local function TToggleFling()
- Fling[1] = not Fling[1]
- if Fling[1] then
- OpenObject(ToggleFling)
- BodyThrust = Instance.new("BodyThrust")
- if GetRigType() == Enum.HumanoidRigType.R6 then
- BodyThrust.Parent = plr.Character.Torso
- elseif GetRigType() == Enum.HumanoidRigType.R15 then
- BodyThrust.Parent = plr.Character.UpperTorso
- end
- EnableNoClip()
- BodyThrust.Force = Vector3.new(Fling[3], 0, 0)
- BodyThrust.Location = Vector3.new(0, 0, Fling[3])
- print("Enabled fling")
- else
- CloseObject(ToggleFling)
- DisableNoClip()
- for i, v in pairs(plr.Character:GetDescendants()) do
- if v:IsA("BasePart") then
- v.Velocity, v.RotVelocity = Vector3.new(0, 0, 0), Vector3.new(0, 0, 0)
- end
- end
- BodyThrust:Destroy()
- print("Disabled fling")
- end
- end
- local function GetIfPlayerInGame(PlayerToFind)
- if PlayerService:FindFirstChild(PlayerToFind) then
- return true
- else
- return false
- end
- end
- local function ServerKek()
- local TargetList = {}
- local index = 1
- local playercount = 0
- if Fling[1] == true then
- TToggleFling()
- end
- for i,v in pairs(PlayerService:GetPlayers()) do
- if v ~= plr then
- playercount = playercount + 1
- table.insert(TargetList, v)
- end
- end
- for i,v in pairs(TargetList) do
- print(i,v.Name)
- end
- while Fling[4] do
- if index > playercount then
- CloseObject(ToggleServerKill)
- DisplayText("Disabled ServerKek","Finished")
- Fling[4] = false
- break
- else
- local InGame = GetIfPlayerInGame(TargetList[index].Name)
- local Dead = GetDeadState(TargetList[index])
- if InGame == true and Dead == false then
- plr.Character.HumanoidRootPart.CFrame = TargetList[index].Character.HumanoidRootPart.CFrame --tp to them
- TToggleFling() --enable fling
- for i = 0,2,1 do
- plr.Character.HumanoidRootPart.CFrame = TargetList[index].Character.HumanoidRootPart.CFrame
- wait(0.15)
- end
- TToggleFling() --disable fling
- wait(0.1) --wait until disabled
- if plr.Character.Humanoid:GetState() == Enum.HumanoidStateType.Seated then --check if seated
- plr.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Running) --get out if you are
- end
- index = index + 1 --go to next victim
- if Fling[4] == false then
- break
- end
- else
- index = index + 1
- end
- end
- end
- end
- --[[events:]]--
- CloseButton.MouseButton1Down:Connect(function()
- TitleBar:TweenPosition(UDim2.new(-0.3, 0, 0.7, 0), Enum.EasingDirection.In, Enum.EasingStyle.Back, 0.75)
- DisplayText("Goodbye!","")
- wait(0.8)
- ScreenGui.Enabled = false
- ScreenGui:Destroy()
- script:Destroy()
- end)
- SpeedUp.MouseButton1Down:Connect(function()
- Fling[3] = Fling[3] + 50
- SpeedBox.Text = "Speed: "..Fling[3]
- if Fling[1] then
- BodyThrust.Force = Vector3.new(Fling[3], 0, 0)
- BodyThrust.Location = Vector3.new(0, 0, Fling[3])
- end
- end)
- SpeedDown.MouseButton1Down:Connect(function()
- Fling[3] = Fling[3] - 50
- SpeedBox.Text = "Speed: "..Fling[3]
- if Fling[1] then
- BodyThrust.Force = Vector3.new(Fling[3], 0, 0)
- BodyThrust.Location = Vector3.new(0, 0, Fling[3])
- end
- end)
- SpeedBox.FocusLost:Connect(function()
- Fling[3] = SpeedBox.Text:gsub("%D",""):sub(0,5)
- if Fling[3] ~= nil then
- SpeedBox.Text = "Speed: "..Fling[3]
- if Fling[1] then
- BodyThrust.Force = Vector3.new(Fling[3], 0, 0)
- BodyThrust.Location = Vector3.new(0, 0, Fling[3])
- end
- end
- end)
- Hotkey.FocusLost:Connect(function()
- Fling[2] = Hotkey.Text:split(" ")[1]:sub(1,1)
- if Fling[2] ~= nil then
- Hotkey.Text = "Hotkey: "..Fling[2]
- end
- end)
- ToggleFling.MouseButton1Down:Connect(function()
- TToggleFling()
- end)
- Respawn.MouseButton1Down:Connect(function()
- if Fling[1] then --disable fling if its enabled
- TToggleFling()
- end
- wait(0.4) --wait for fling to stop
- for i=0,10,1 do
- plr.Character.Humanoid:ChangeState(2) --make player recover from falling
- end
- for i, v in pairs(plr.Character:GetDescendants()) do
- if v:IsA("BasePart") then
- v.Velocity, v.RotVelocity = Vector3.new(0, 0, 0), Vector3.new(0, 0, 0)
- end
- end
- end)
- ToggleServerKill.MouseButton1Down:Connect(function()
- Fling[4] = not Fling[4]
- if Fling[4] then
- OpenObject(ToggleServerKill)
- DisplayText("Enabled ServerKek","")
- ServerKek()
- else
- CloseObject(ToggleServerKill)
- DisplayText("Disabled ServerKek","There might be a delay!")
- end
- end)
- NoVertGain.MouseButton1Down:Connect(function()
- Fling[5] = not Fling[5]
- if Fling[5] then
- OpenObject(NoVertGain)
- else
- CloseObject(NoVertGain)
- end
- end)
- RunService.Stepped:Connect(function()
- if Fling[1] then
- EnableNoClip()
- elseif Fling[5] then
- for i, v in pairs(plr.Character:GetDescendants()) do
- if v:IsA("BasePart") then
- v.Velocity, v.RotVelocity = Vector3.new(0, 0, 0), Vector3.new(0, 0, 0)
- end
- end
- end
- end)
- TitleBar.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- Dragging[1] = true
- Dragging[2] = input.Position
- Dragging[3] = TitleBar.Position
- end
- end)
- TitleBar.InputEnded:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- Dragging[1] = false
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement then
- if Dragging[1] then
- local delta = input.Position - Dragging[2]
- TitleBar:TweenPosition(UDim2.new(Dragging[3].X.Scale, Dragging[3].X.Offset + delta.X, Dragging[3].Y.Scale, Dragging[3].Y.Offset + delta.Y), Enum.EasingDirection.Out, Enum.EasingStyle.Sine, 0.035)
- wait()
- end
- end
- end)
- mouse.KeyDown:Connect(function(key)
- if key == Fling[2] then
- TToggleFling()
- end
- end)
- DisplaySuggestion()
- TitleBar:TweenPosition(UDim2.new(0.25, 0, 0.7, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Back, 0.75)
- DisplayText("Loaded Fling GUI "..version, "Made by topit", 3)
- return nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement