Advertisement
Thecodeeasar

Untitled

Nov 2nd, 2024 (edited)
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local RunService = game:GetService("RunService")
  3. local LocalPlayer = Players.LocalPlayer
  4. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
  5. local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
  6.  
  7. -- Function to check if collision is enabled
  8. local function isCollisionEnabled()
  9. return not workspace:FindFirstChild("FallenPartsDestroyHeight")
  10. end
  11.  
  12. -- Check collision and kick if not enabled
  13. if not isCollisionEnabled() then
  14. LocalPlayer:Kick("Collision is not enabled.")
  15. return
  16. end
  17.  
  18. -- Load the Orion Library
  19. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
  20.  
  21. local Window = OrionLib:MakeWindow({Name = "FE Fling Script", HidePremium = false, SaveConfig = true, ConfigFolder = "OrionTest"})
  22. local Tab = Window:MakeTab({Name = "Fling", Icon = "rbxassetid://4483345998", PremiumOnly = false})
  23.  
  24. local selectedPlayer
  25. local isFlinging = false
  26.  
  27. -- Function to fling the selected player
  28. local function flingPlayer()
  29. if not selectedPlayer or not selectedPlayer.Character then return end
  30.  
  31. local targetHRP = selectedPlayer.Character:FindFirstChild("HumanoidRootPart")
  32. if not targetHRP then return end
  33.  
  34. -- Teleport local player inside the target player
  35. HumanoidRootPart.CFrame = targetHRP.CFrame
  36.  
  37. -- Start the fling effect
  38. isFlinging = true
  39. local originalVelocity = HumanoidRootPart.Velocity
  40. while isFlinging do
  41. RunService.Heartbeat:Wait()
  42. HumanoidRootPart.Velocity = Vector3.new(9e9, 9e9, 9e9)
  43. HumanoidRootPart.RotVelocity = Vector3.new(9e9, 9e9, 9e9)
  44. HumanoidRootPart.CFrame = targetHRP.CFrame
  45. end
  46.  
  47. -- Reset velocity after fling
  48. HumanoidRootPart.Velocity = originalVelocity
  49. HumanoidRootPart.RotVelocity = Vector3.new(0, 0, 0)
  50. end
  51.  
  52. -- Populate dropdown with players
  53. local playerList = {}
  54. for _, player in ipairs(Players:GetPlayers()) do
  55. if player ~= LocalPlayer then
  56. table.insert(playerList, player.Name)
  57. end
  58. end
  59.  
  60. Tab:AddDropdown({
  61. Name = "Select Player",
  62. Default = "",
  63. Options = playerList,
  64. Callback = function(Value)
  65. selectedPlayer = Players:FindFirstChild(Value)
  66. end
  67. })
  68.  
  69. Tab:AddButton({
  70. Name = "Fling Player",
  71. Callback = function()
  72. if selectedPlayer then
  73. flingPlayer()
  74. OrionLib:MakeNotification({
  75. Name = "Fling Script",
  76. Content = "Attempted to fling " .. selectedPlayer.Name,
  77. Image = "rbxassetid://4483345998",
  78. Time = 5
  79. })
  80. else
  81. OrionLib:MakeNotification({
  82. Name = "Fling Script",
  83. Content = "Please select a player first!",
  84. Image = "rbxassetid://4483345998",
  85. Time = 5
  86. })
  87. end
  88. end
  89. })
  90.  
  91. Tab:AddButton({
  92. Name = "Stop Fling",
  93. Callback = function()
  94. isFlinging = false
  95. OrionLib:MakeNotification({
  96. Name = "Fling Script",
  97. Content = "Fling stopped.",
  98. Image = "rbxassetid://4483345998",
  99. Time = 5
  100. })
  101. end
  102. })
  103.  
  104. OrionLib:Init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement