Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local TweenService = game:GetService("TweenService")
- local LocalPlayer = Players.LocalPlayer
- -- Key System
- local keyGui = Instance.new("ScreenGui", LocalPlayer:WaitForChild("PlayerGui"))
- keyGui.Name = "KeyGUI"
- keyGui.ResetOnSpawn = false
- local keyFrame = Instance.new("Frame", keyGui)
- keyFrame.Size = UDim2.new(0, 300, 0, 200)
- keyFrame.Position = UDim2.new(0.5, -150, 0.5, -100)
- keyFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- keyFrame.BorderSizePixel = 0
- keyFrame.Active = true
- keyFrame.Draggable = true
- Instance.new("UICorner", keyFrame).CornerRadius = UDim.new(0, 10)
- local keyStroke = Instance.new("UIStroke", keyFrame)
- keyStroke.Color = Color3.new(1, 1, 1)
- keyStroke.Thickness = 2
- local keyTitle = Instance.new("TextLabel", keyFrame)
- keyTitle.Text = "Enter Key to Access GUI"
- keyTitle.Size = UDim2.new(1, 0, 0, 40)
- keyTitle.BackgroundTransparency = 1
- keyTitle.Font = Enum.Font.GothamBold
- keyTitle.TextColor3 = Color3.new(1, 1, 1)
- keyTitle.TextScaled = true
- local keyInput = Instance.new("TextBox", keyFrame)
- keyInput.PlaceholderText = "Enter Key Here"
- keyInput.Size = UDim2.new(0.9, 0, 0, 40)
- keyInput.Position = UDim2.new(0.05, 0, 0, 50)
- keyInput.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- keyInput.Font = Enum.Font.Gotham
- keyInput.TextColor3 = Color3.new(1, 1, 1)
- keyInput.TextScaled = true
- Instance.new("UICorner", keyInput).CornerRadius = UDim.new(0, 6)
- local submitButton = Instance.new("TextButton", keyFrame)
- submitButton.Text = "Submit"
- submitButton.Size = UDim2.new(0.9, 0, 0, 40)
- submitButton.Position = UDim2.new(0.05, 0, 0, 100)
- submitButton.BackgroundColor3 = Color3.fromRGB(60, 150, 60)
- submitButton.Font = Enum.Font.GothamBold
- submitButton.TextColor3 = Color3.new(1, 1, 1)
- submitButton.TextScaled = true
- Instance.new("UICorner", submitButton).CornerRadius = UDim.new(0, 6)
- local discordButton = Instance.new("TextButton", keyFrame)
- discordButton.Text = "Join the Discord for the key!"
- discordButton.Size = UDim2.new(0.9, 0, 0, 40)
- discordButton.Position = UDim2.new(0.05, 0, 0, 150)
- discordButton.BackgroundColor3 = Color3.fromRGB(50, 50, 200)
- discordButton.Font = Enum.Font.GothamBold
- discordButton.TextColor3 = Color3.new(1, 1, 1)
- discordButton.TextScaled = true
- Instance.new("UICorner", discordButton).CornerRadius = UDim.new(0, 6)
- discordButton.MouseButton1Click:Connect(function()
- setclipboard("https://discord.gg/FpTmRrzHXT")
- end)
- submitButton.MouseButton1Click:Connect(function()
- if keyInput.Text == "SanderHub" then
- keyGui:Destroy()
- -- Main GUI starts here
- local d = LocalPlayer
- local e = false
- local f = nil
- local g = 0.5
- local h = 10000
- local i = false
- local n = Instance.new("ScreenGui", d:WaitForChild("PlayerGui"))
- n.Name = "FlingGUI"
- n.ResetOnSpawn = false
- local o = Instance.new("Sound", n)
- o.SoundId = "rbxassetid://5852470908"
- o.Volume = 1
- local p = Instance.new("Sound", n)
- p.SoundId = "rbxassetid://6042053626"
- p.Volume = 1
- local q = Instance.new("Sound", n)
- q.SoundId = "rbxassetid://18439146929"
- q.Volume = 1
- local r = Instance.new("Frame", n)
- r.Size = UDim2.new(0, 300, 0, 210)
- r.Position = UDim2.new(0.5, -150, 0.5, -105)
- r.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- r.BorderSizePixel = 0
- r.Active = true
- r.Draggable = true
- Instance.new("UICorner", r).CornerRadius = UDim.new(0, 10)
- local s = Instance.new("UIStroke", r)
- s.Color = Color3.new(1, 1, 1)
- s.Thickness = 2
- local t = Instance.new("TextLabel", r)
- t.Text = "Sander's GUI"
- t.Size = UDim2.new(1, 0, 0, 30)
- t.BackgroundTransparency = 1
- t.Font = Enum.Font.GothamBold
- t.TextColor3 = Color3.new(1, 1, 1)
- t.TextScaled = true
- local u = Instance.new("TextBox", r)
- u.PlaceholderText = "Enter partial name"
- u.Size = UDim2.new(0.9, 0, 0, 30)
- u.Position = UDim2.new(0.05, 0, 0, 40)
- u.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- u.Font = Enum.Font.Gotham
- u.TextColor3 = Color3.new(1, 1, 1)
- u.TextScaled = true
- Instance.new("UICorner", u).CornerRadius = UDim.new(0, 6)
- local v = Instance.new("TextButton", r)
- v.Text = "Start Fling"
- v.Size = UDim2.new(0.42, 0, 0, 30)
- v.Position = UDim2.new(0.05, 0, 0, 90)
- v.BackgroundColor3 = Color3.fromRGB(60, 150, 60)
- v.Font = Enum.Font.GothamBold
- v.TextColor3 = Color3.new(1, 1, 1)
- v.TextScaled = true
- Instance.new("UICorner", v).CornerRadius = UDim.new(0, 6)
- local w = Instance.new("TextButton", r)
- w.Text = "Stop"
- w.Size = UDim2.new(0.42, 0, 0, 30)
- w.Position = UDim2.new(0.53, 0, 0, 90)
- w.BackgroundColor3 = Color3.fromRGB(180, 50, 50)
- w.Font = Enum.Font.GothamBold
- w.TextColor3 = Color3.new(1, 1, 1)
- w.TextScaled = true
- Instance.new("UICorner", w).CornerRadius = UDim.new(0, 6)
- local x = Instance.new("TextButton", r)
- x.Text = "Teleport"
- x.Size = UDim2.new(0.42, 0, 0, 30)
- x.Position = UDim2.new(0.05, 0, 0, 140)
- x.BackgroundColor3 = Color3.fromRGB(50, 50, 200)
- x.Font = Enum.Font.GothamBold
- x.TextColor3 = Color3.new(1, 1, 1)
- x.TextScaled = true
- Instance.new("UICorner", x).CornerRadius = UDim.new(0, 6)
- local y = Instance.new("TextButton", r)
- y.Text = "Viewing: OFF"
- y.Size = UDim2.new(0.42, 0, 0, 30)
- y.Position = UDim2.new(0.53, 0, 0, 140)
- y.BackgroundColor3 = Color3.fromRGB(50, 200, 50)
- y.Font = Enum.Font.GothamBold
- y.TextColor3 = Color3.new(1, 1, 1)
- y.TextScaled = true
- Instance.new("UICorner", y).CornerRadius = UDim.new(0, 6)
- local function buttonEffects(button)
- button.MouseEnter:Connect(function()
- if o.IsLoaded then o:Play() end
- end)
- button.MouseButton1Click:Connect(function()
- if p.IsLoaded then p:Play() end
- end)
- end
- buttonEffects(v)
- buttonEffects(w)
- buttonEffects(x)
- buttonEffects(y)
- local function resolvePlayer(input)
- input = input:lower()
- for _, plr in pairs(Players:GetPlayers()) do
- if plr ~= d then
- local name = plr.Name:lower()
- local display = plr.DisplayName:lower()
- if name:sub(1, #input) == input or display:sub(1, #input) == input then
- return plr
- end
- end
- end
- end
- u.FocusLost:Connect(function(af)
- if af then
- local ag = resolvePlayer(u.Text)
- if ag then
- u.Text = ag.DisplayName .. " (@" .. ag.Name .. ")"
- f = ag
- end
- end
- end)
- v.MouseButton1Click:Connect(function()
- if f then
- e = true
- local char = d.Character
- if char then
- local hrp = char:FindFirstChild("HumanoidRootPart")
- if hrp then hrp.Anchored = false end
- local hum = char:FindFirstChild("Humanoid")
- if hum then
- hum:SetStateEnabled(Enum.HumanoidStateType.Seated, false)
- hum:SetStateEnabled(Enum.HumanoidStateType.Climbing, false)
- hum:SetStateEnabled(Enum.HumanoidStateType.Physics, false)
- hum.Health = math.huge
- end
- end
- workspace.CurrentCamera.CameraSubject = f.Character.Humanoid
- workspace.CurrentCamera.CameraType = Enum.CameraType.Attach
- end
- end)
- w.MouseButton1Click:Connect(function()
- e = false
- local char = d.Character
- if char then
- local hum = char:FindFirstChild("Humanoid")
- if hum then hum.Health = 0 end
- end
- workspace.CurrentCamera.CameraSubject = d.Character.Humanoid
- workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
- end)
- x.MouseButton1Click:Connect(function()
- if f and f.Character and f.Character:FindFirstChild("HumanoidRootPart") then
- local target = f.Character.HumanoidRootPart
- d.Character:SetPrimaryPartCFrame(target.CFrame)
- end
- end)
- y.MouseButton1Click:Connect(function()
- i = not i
- if i then
- y.Text = "Viewing: ON"
- if f and f.Character and f.Character:FindFirstChild("HumanoidRootPart") then
- workspace.CurrentCamera.CameraSubject = f.Character.Humanoid
- workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
- end
- else
- y.Text = "Viewing: OFF"
- workspace.CurrentCamera.CameraSubject = d.Character.Humanoid
- workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
- end
- end)
- RunService.Heartbeat:Connect(function()
- local char = d.Character
- local root = char and char:FindFirstChild("HumanoidRootPart")
- if e and root and f and f.Character and f.Character:FindFirstChild("HumanoidRootPart") then
- local targetRoot = f.Character.HumanoidRootPart
- local predicted = targetRoot.Position + (targetRoot.Velocity * g)
- root.CFrame = CFrame.new(predicted + Vector3.new(0, 1, 0))
- root.Velocity = targetRoot.Velocity * 15 + Vector3.new(0, h, 0)
- root.RotVelocity = Vector3.new(100000, 100000, 100000)
- end
- end)
- else
- LocalPlayer:Kick("Incorrect Key Entered! Get the correct key from the Discord!")
- end
- end)
Add Comment
Please, Sign In to add comment