Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local Workspace = game:GetService("Workspace")
- local UserInputService = game:GetService("UserInputService")
- local TweenService = game:GetService("TweenService")
- local LocalPlayer = Players.LocalPlayer
- local Camera = Workspace.CurrentCamera
- local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/jensonhirst/Orion/main/source')))()
- -- Premium usernames list
- local premiumUsernames = {
- "0Tripyxman0"
- }
- -- Function to check if the local player is a premium user
- local function isPremiumUser()
- local player = LocalPlayer
- if player then
- for _, username in ipairs(premiumUsernames) do
- if player.Name == username then
- return true -- Username matches, user is premium
- end
- end
- end
- return false -- No match found
- end
- -- Notify premium users
- if isPremiumUser() then
- OrionLib:MakeNotification({
- Name = "Premium Access",
- Content = "Enjoy premium features, fellow teammate!",
- Image = "rbxassetid://4483345998",
- Time = 5
- })
- end
- local Window = OrionLib:MakeWindow({Name = "FE Fling v2", HidePremium = true, SaveConfig = true, ConfigFolder = "FEFlingV2"})
- local FlingTab = Window:MakeTab({Name = "Fling", Icon = "rbxassetid://4483345998", PremiumOnly = false})
- local AntiVoidTab = Window:MakeTab({Name = "Anti Void", Icon = "rbxassetid://4483345998", PremiumOnly = false})
- local AntiFlingTab = Window:MakeTab({Name = "Anti Fling", Icon = "rbxassetid://4483345998", PremiumOnly = false})
- local MiscTab = Window:MakeTab({Name = "Misc", Icon = "rbxassetid://4483345998", PremiumOnly = false})
- local selectedPlayer
- local PlayerDropdown
- local isFlinging = false
- local originalCameraSubject
- local originalCharacterPos
- local isAntiFlingEnabled = false
- local flingPower = 9999
- local flingRadius = 1
- local invisFling = false
- -- Function to get character and HumanoidRootPart
- local function getCharacter()
- local character = LocalPlayer.Character
- if not character then
- repeat
- character = LocalPlayer.Character
- task.wait()
- until character
- end
- return character
- end
- local function getHumanoidRootPart()
- local character = getCharacter()
- return character:WaitForChild("HumanoidRootPart")
- end
- -- Function to update player list
- local function updatePlayerList()
- local playerList = {}
- for _, player in ipairs(Players:GetPlayers()) do
- if player ~= LocalPlayer then
- table.insert(playerList, player.Name)
- end
- end
- return playerList
- end
- -- Function to perform continuous fling (existing code)
- local function performFling(targetPlayer)
- if not targetPlayer or not targetPlayer.Character then return end
- local targetHRP = targetPlayer.Character:FindFirstChild("HumanoidRootPart")
- if not targetHRP then return end
- local character = getCharacter()
- local humanoidRootPart = getHumanoidRootPart()
- originalCameraSubject = Camera.CameraSubject
- originalCharacterPos = humanoidRootPart.CFrame
- if not invisFling then
- Camera.CameraSubject = targetPlayer.Character:FindFirstChildOfClass("Humanoid")
- end
- while isFlinging and targetPlayer and targetPlayer.Character do
- character = getCharacter()
- humanoidRootPart = getHumanoidRootPart()
- targetHRP = targetPlayer.Character:FindFirstChild("HumanoidRootPart")
- if targetHRP and humanoidRootPart then
- local offsetPosition = targetHRP.Position + Vector3.new(math.random(-flingRadius, flingRadius), 0, math.random(-flingRadius, flingRadius))
- humanoidRootPart.CFrame = CFrame.new(offsetPosition)
- humanoidRootPart.Velocity = Vector3.new(flingPower, flingPower, flingPower)
- humanoidRootPart.RotVelocity = Vector3.new(flingPower, flingPower, flingPower)
- end
- RunService.Heartbeat:Wait()
- end
- Camera.CameraSubject = originalCameraSubject
- if character and character:FindFirstChild("Humanoid") then
- character.Humanoid.Health = character.Humanoid.MaxHealth
- end
- humanoidRootPart = getHumanoidRootPart()
- humanoidRootPart.CFrame = originalCharacterPos
- humanoidRootPart.Velocity = Vector3.new(0, 0, 0)
- humanoidRootPart.RotVelocity = Vector3.new(0, 0, 0)
- end
- -- Create dropdown for player selection (existing code)
- PlayerDropdown = FlingTab:AddDropdown({
- Name = "Select Player",
- Default = "",
- Options = updatePlayerList(),
- Callback = function(Value)
- selectedPlayer = Players:FindFirstChild(Value)
- end
- })
- -- Create toggle for fling functionality (existing code)
- FlingTab:AddToggle({
- Name = "Fling Player",
- Default = false,
- Callback = function(Value)
- isFlinging = Value
- if isFlinging then
- if selectedPlayer then
- performFling(selectedPlayer)
- else
- OrionLib:MakeNotification({
- Name = "Fling Error",
- Content = "Please select a player first!",
- Image = "rbxassetid://4483345998",
- Time = 3
- })
- FlingTab:GetToggle("Fling Player").Set(false)
- end
- end
- end,
- })
- -- Add textbox for fling power (existing code)
- FlingTab:AddTextbox({
- Name = "Fling Power",
- Default = "9999",
- TextDisappear = false,
- Callback = function(Value)
- local newPower = tonumber(Value)
- if newPower and newPower > 0 then
- flingPower = newPower
- else
- OrionLib:MakeNotification({
- Name ="Invalid Input",
- Content ="Please enter a valid number greater than 0 for Fling Power.",
- Image ="rbxassetid://4483345998",
- Time=3,
- })
- end
- end,
- })
- -- Add textbox for fling radius (existing code)
- FlingTab:AddTextbox({
- Name ="Fling Radius",
- Default ="1",
- TextDisappear=false,
- Callback=function(Value)
- local newRadius=tonumber(Value)
- if newRadius and newRadius>0 then
- flingRadius=newRadius
- else
- OrionLib:MakeNotification({
- Name="Invalid Input",
- Content="Please enter a valid number greater than 0 for Fling Radius.",
- Image="rbxassetid://4483345998",
- Time=3,
- })
- end
- end,
- })
- -- Add toggle for invisible fling (existing code)
- FlingTab:AddToggle({
- Name="Invisible Fling",
- Default=false,
- Callback=function(Value)
- invisFling=Value
- end,
- })
- -- Function to update dropdown when players join or leave (existing code)
- local function updateDropdown()
- PlayerDropdown:Refresh(updatePlayerList(), true)
- end
- Players.PlayerAdded:Connect(updateDropdown)
- Players.PlayerRemoving:Connect(updateDropdown)
- spawn(function()
- while true do
- updateDropdown()
- task.wait(1)
- end
- end)
- -- Anti Void functionality (existing code)
- local antiVoidPart
- local function createAntiVoid()
- if antiVoidPart then return end
- antiVoidPart=Instance.new("Part")
- antiVoidPart.Name="AntiVoidPart"
- antiVoidPart.Size=Vector3.new(2048, 1, 2048)
- antiVoidPart.Anchored=true
- antiVoidPart.Transparency=0.5
- antiVoidPart.CanCollide=true
- antiVoidPart.BrickColor=BrickColor.new("Really blue")
- local lowestY=math.huge
- for _, part in pairs(Workspace:GetDescendants()) do
- if part:IsA("BasePart") then
- lowestY=math.min(lowestY, part.Position.Y)
- end
- end
- antiVoidPart.Position=Vector3.new(0, lowestY - 5, 0)
- antiVoidPart.Parent=Workspace
- end
- local function removeAntiVoid()
- if antiVoidPart then
- antiVoidPart:Destroy()
- antiVoidPart=nil
- end
- end
- AntiVoidTab:AddToggle({
- Name="Anti Void",
- Default=false,
- Callback=function(Value)
- if Value then
- createAntiVoid()
- else
- removeAntiVoid()
- end
- end
- })
- -- Anti Fling functionality (existing code)
- local function disableLocalPlayerCollisions()
- local character=getCharacter()
- for _, part in pairs(character:GetDescendants()) do
- if part:IsA("BasePart") then
- part.CanCollide=false
- end
- end
- end
- local function enableLocalPlayerCollisions()
- local character=getCharacter()
- for _, part in pairs(character:GetDescendants()) do
- if part:IsA("BasePart") then
- part.CanCollide=true
- end
- end
- end
- local function performAntiFling()
- disableLocalPlayerCollisions()
- while isAntiFlingEnabled do
- RunService.Heartbeat:Wait()
- end
- enableLocalPlayerCollisions()
- end
- AntiFlingTab:AddToggle({
- Name="Enable Anti Fling",
- Default=false,
- Callback=function(Value)
- isAntiFlingEnabled=Value
- if isAntiFlingEnabled then
- performAntiFling()
- else
- enableLocalPlayerCollisions()
- end
- end
- })
- -- Misc features (existing code)
- local isSuperJumpEnabled=false
- MiscTab:AddToggle({
- Name="Super Jump",
- Default=false,
- Callback=function(Value)
- isSuperJumpEnabled=Value
- local character=getCharacter()
- if character and character:FindFirstChild("Humanoid") then
- character.Humanoid.JumpPower=isSuperJumpEnabled and 100 or 50
- end
- end
- })
- local isSpeedEnabled=false
- MiscTab:AddToggle({
- Name="Speed Boost",
- Default=false,
- Callback=function(Value)
- isSpeedEnabled=Value
- local character=getCharacter()
- if character and character:FindFirstChild("Humanoid") then
- character.Humanoid.WalkSpeed=isSpeedEnabled and 32 or 16
- end
- end
- })
- MiscTab:AddButton({
- Name="Teleport to Random Player",
- Callback=function()
- local players=Players:GetPlayers()
- local randomPlayer=players[math.random(1, #players)]
- if randomPlayer~=LocalPlayer and randomPlayer.Character then
- local character=getCharacter()
- character:SetPrimaryPartCFrame(randomPlayer.Character.PrimaryPart.CFrame)
- end
- end
- })
- local noclipEnabled=false
- MiscTab:AddToggle({
- Name="Noclip",
- Default=false,
- Callback=function(Value)
- noclipEnabled=Value
- if noclipEnabled then
- RunService:BindToRenderStep("Noclip", 0, function()
- local character=getCharacter()
- if character and character:FindFirstChild("Humanoid") then
- character.Humanoid:ChangeState(11)
- end
- end)
- else
- RunService:UnbindFromRenderStep("Noclip")
- end
- end
- })
- -- Handle character respawn (existing code)
- LocalPlayer.CharacterAdded:Connect(function(newCharacter)
- local humanoid=newCharacter:WaitForChild("Humanoid")
- -- Reapply settings after respawn (existing code)
- if isSuperJumpEnabled then
- humanoid.JumpPower=100
- end
- if isSpeedEnabled then
- humanoid.WalkSpeed=32
- end
- if isAntiFlingEnabled then
- disableLocalPlayerCollisions()
- end
- end)
- -- Define the iPlayer table and the premium function at the end of your script.
- local iPlayer={}
- function iPlayer:premium()
- return isPremiumUser() -- Use the existing premium check logic here.
- end
- OrionLib:Init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement