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 LocalPlayer = Players.LocalPlayer
- local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
- local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
- -- Function to check if collision is enabled
- local function isCollisionEnabled()
- return not workspace:FindFirstChild("FallenPartsDestroyHeight")
- end
- -- Check collision and kick if not enabled
- if not isCollisionEnabled() then
- LocalPlayer:Kick("Collision is not enabled.")
- return
- end
- -- Load the Orion Library
- local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
- local Window = OrionLib:MakeWindow({Name = "FE Fling Script", HidePremium = false, SaveConfig = true, ConfigFolder = "OrionTest"})
- local Tab = Window:MakeTab({Name = "Fling", Icon = "rbxassetid://4483345998", PremiumOnly = false})
- local selectedPlayer
- local isFlinging = false
- -- Function to fling the selected player
- local function flingPlayer()
- if not selectedPlayer or not selectedPlayer.Character then return end
- local targetHRP = selectedPlayer.Character:FindFirstChild("HumanoidRootPart")
- if not targetHRP then return end
- -- Teleport local player inside the target player
- HumanoidRootPart.CFrame = targetHRP.CFrame
- -- Start the fling effect
- isFlinging = true
- local originalVelocity = HumanoidRootPart.Velocity
- while isFlinging do
- RunService.Heartbeat:Wait()
- HumanoidRootPart.Velocity = Vector3.new(9e9, 9e9, 9e9)
- HumanoidRootPart.RotVelocity = Vector3.new(9e9, 9e9, 9e9)
- HumanoidRootPart.CFrame = targetHRP.CFrame
- end
- -- Reset velocity after fling
- HumanoidRootPart.Velocity = originalVelocity
- HumanoidRootPart.RotVelocity = Vector3.new(0, 0, 0)
- end
- -- Populate dropdown with players
- local playerList = {}
- for _, player in ipairs(Players:GetPlayers()) do
- if player ~= LocalPlayer then
- table.insert(playerList, player.Name)
- end
- end
- Tab:AddDropdown({
- Name = "Select Player",
- Default = "",
- Options = playerList,
- Callback = function(Value)
- selectedPlayer = Players:FindFirstChild(Value)
- end
- })
- Tab:AddButton({
- Name = "Fling Player",
- Callback = function()
- if selectedPlayer then
- flingPlayer()
- OrionLib:MakeNotification({
- Name = "Fling Script",
- Content = "Attempted to fling " .. selectedPlayer.Name,
- Image = "rbxassetid://4483345998",
- Time = 5
- })
- else
- OrionLib:MakeNotification({
- Name = "Fling Script",
- Content = "Please select a player first!",
- Image = "rbxassetid://4483345998",
- Time = 5
- })
- end
- end
- })
- Tab:AddButton({
- Name = "Stop Fling",
- Callback = function()
- isFlinging = false
- OrionLib:MakeNotification({
- Name = "Fling Script",
- Content = "Fling stopped.",
- Image = "rbxassetid://4483345998",
- Time = 5
- })
- end
- })
- OrionLib:Init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement