Advertisement
Thecodeeasar

Fe fling v3

Nov 2nd, 2024 (edited)
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.03 KB | None | 0 0
  1. -- Services
  2. local Players = game:GetService("Players")
  3. local RunService = game:GetService("RunService")
  4. local Workspace = game:GetService("Workspace")
  5. local UserInputService = game:GetService("UserInputService")
  6. local TweenService = game:GetService("TweenService")
  7. local LocalPlayer = Players.LocalPlayer
  8. local Camera = Workspace.CurrentCamera
  9.  
  10. -- OrionLib
  11. local OrionLib = loadstring(game:HttpGet('https://raw.githubusercontent.com/shlexware/Orion/main/source'))()
  12.  
  13. -- Premium usernames list
  14. local premiumUsernames = {
  15. "Wutdahell510", -- Add your premium usernames here
  16. "0tripyxman0",
  17. "User3"
  18. }
  19.  
  20. -- Function to check if the local player is a premium user
  21. local function isPremiumUser()
  22. local player = LocalPlayer
  23. if player then
  24. for _, username in ipairs(premiumUsernames) do
  25. if player.Name == username then
  26. return true -- Username matches, user is premium
  27. end
  28. end
  29. end
  30. return false -- No match found
  31. end
  32.  
  33. -- Function to get premium features
  34. local function getPremiumFeatures()
  35. if isPremiumUser() then
  36. return true
  37. else
  38. return false
  39. end
  40. end
  41.  
  42. -- Create OrionLib Window
  43. local Window = OrionLib:MakeWindow({
  44. Name = "FE Fling v2",
  45. HidePremium = false, -- Show premium features for premium users
  46. SaveConfig = true,
  47. ConfigFolder = "FEFlingV2"
  48. })
  49.  
  50. -- Fling Tab (Normal)
  51. local FlingTab = Window:MakeTab({
  52. Name = "Fling",
  53. Icon = "rbxassetid://4483345998",
  54. PremiumOnly = false
  55. })
  56.  
  57. -- AntiVoid Tab (Normal)
  58. local AntiVoidTab = Window:MakeTab({
  59. Name = "Anti Void",
  60. Icon = "rbxassetid://4483345998",
  61. PremiumOnly = false
  62. })
  63.  
  64. -- AntiFling Tab (Normal)
  65. local AntiFlingTab = Window:MakeTab({
  66. Name = "Anti Fling",
  67. Icon = "rbxassetid://4483345998",
  68. PremiumOnly = false
  69. })
  70.  
  71. -- Misc Tab (Normal)
  72. local MiscTab = Window:MakeTab({
  73. Name = "Misc",
  74. Icon = "rbxassetid://4483345998",
  75. PremiumOnly = false
  76. })
  77.  
  78. -- Update Log Tab (New Tab)
  79. local UpdateLogTab = Window:MakeTab({
  80. Name = "Update Log",
  81. Icon = "rbxassetid://4483345998",
  82. PremiumOnly = false
  83. })
  84.  
  85. -- Update Log Content
  86. local updateLogContent = [[
  87. Update Log v2.0:
  88.  
  89. - Added **Premium User Support**: Special features are now available for premium users.
  90. - Added **Premium Fling Power**: Premium users can fling with higher power.
  91. - Added **Auto Fling (Premium)**: Premium users can activate auto-flinging.
  92. - **Anti-Void Feature**: Prevents players from falling into void with anti-void part.
  93. - **Update Notifications**: Players now receive notifications on updates or when premium features are unlocked.
  94. - Added **Update Log Tab**: View recent updates in the GUI.
  95. - Improved UI: Better interaction and organization of UI elements.
  96.  
  97. Stay tuned for more features!
  98.  
  99. ]]
  100. -- Split the update log content into multiple paragraphs for readability
  101. local updateLogParagraphs = string.split(updateLogContent, "\n")
  102.  
  103. -- Display Update Log in the UI (with improved readability)
  104. for _, paragraph in ipairs(updateLogParagraphs) do
  105. UpdateLogTab:AddParagraph(paragraph, true)
  106. end
  107.  
  108. -- Player Fling
  109. local isFlinging = false
  110. local selectedPlayer
  111. local flingPower = 9999
  112. local flingRadius = 1
  113. local invisFling = false
  114.  
  115. -- Premium Fling Power
  116. local premiumFlingPower = flingPower * 2 -- Premium users get double fling power
  117.  
  118. -- Function to get character and HumanoidRootPart
  119. local function getCharacter()
  120. local character = LocalPlayer.Character
  121. if not character then
  122. repeat
  123. character = LocalPlayer.Character
  124. task.wait()
  125. until character
  126. end
  127. return character
  128. end
  129.  
  130. local function getHumanoidRootPart()
  131. local character = getCharacter()
  132. return character:WaitForChild("HumanoidRootPart")
  133. end
  134.  
  135. -- Update Player List
  136. local function updatePlayerList()
  137. local playerList = {}
  138. for _, player in ipairs(Players:GetPlayers()) do
  139. if player ~= LocalPlayer then
  140. table.insert(playerList, player.Name)
  141. end
  142. end
  143. return playerList
  144. end
  145.  
  146. -- Premium Access Notification
  147. if isPremiumUser() then
  148. OrionLib:MakeNotification({
  149. Name = "Premium Access",
  150. Content = "Enjoy premium features, fellow teammate!",
  151. Image = "rbxassetid://4483345998",
  152. Time = 5
  153. })
  154. end
  155.  
  156. -- Perform Fling Functionality
  157. local function performFling(targetPlayer)
  158. if not targetPlayer or not targetPlayer.Character then return end
  159. local targetHRP = targetPlayer.Character:FindFirstChild("HumanoidRootPart")
  160. if not targetHRP then return end
  161.  
  162. local character = getCharacter()
  163. local humanoidRootPart = getHumanoidRootPart()
  164.  
  165. -- Fling power
  166. local flingAmount = getPremiumFeatures() and premiumFlingPower or flingPower
  167.  
  168. while isFlinging and targetPlayer and targetPlayer.Character do
  169. character = getCharacter()
  170. humanoidRootPart = getHumanoidRootPart()
  171. targetHRP = targetPlayer.Character:FindFirstChild("HumanoidRootPart")
  172. if targetHRP and humanoidRootPart then
  173. local offsetPosition = targetHRP.Position + Vector3.new(math.random(-flingRadius, flingRadius), 0, math.random(-flingRadius, flingRadius))
  174. humanoidRootPart.CFrame = CFrame.new(offsetPosition)
  175. humanoidRootPart.Velocity = Vector3.new(flingAmount, flingAmount, flingAmount)
  176. humanoidRootPart.RotVelocity = Vector3.new(flingAmount, flingAmount, flingAmount)
  177. end
  178. RunService.Heartbeat:Wait()
  179. end
  180. end
  181.  
  182. -- Player Selection Dropdown
  183. local PlayerDropdown = FlingTab:AddDropdown({
  184. Name = "Select Player",
  185. Default = "",
  186. Options = updatePlayerList(),
  187. Callback = function(Value)
  188. selectedPlayer = Players:FindFirstChild(Value)
  189. end
  190. })
  191.  
  192. -- Fling Toggle
  193. FlingTab:AddToggle({
  194. Name = "Fling Player",
  195. Default = false,
  196. Callback = function(Value)
  197. isFlinging = Value
  198. if isFlinging then
  199. if selectedPlayer then
  200. performFling(selectedPlayer)
  201. else
  202. OrionLib:MakeNotification({
  203. Name = "Fling Error",
  204. Content = "Please select a player first!",
  205. Image = "rbxassetid://4483345998",
  206. Time = 3
  207. })
  208. FlingTab:GetToggle("Fling Player").Set(false)
  209. end
  210. end
  211. end,
  212. })
  213.  
  214. -- Premium Toggle: Enable Special Premium Features (Example: Auto Fling)
  215. if isPremiumUser() then
  216. FlingTab:AddToggle({
  217. Name = "Auto Fling (Premium)",
  218. Default = false,
  219. Callback = function(Value)
  220. -- Special premium feature like auto-flinging or something unique
  221. end,
  222. })
  223. end
  224.  
  225. -- Anti Void Feature
  226. local antiVoidPart
  227. local function createAntiVoid()
  228. if antiVoidPart then return end
  229.  
  230. antiVoidPart = Instance.new("Part")
  231. antiVoidPart.Name = "AntiVoidPart"
  232. antiVoidPart.Size = Vector3.new(2048, 1, 2048)
  233. antiVoidPart.Anchored = true
  234. antiVoidPart.Transparency = 0.5
  235. antiVoidPart.CanCollide = true
  236. antiVoidPart.BrickColor = BrickColor.new("Really blue")
  237.  
  238. local lowestY = math.huge
  239. for _, part in pairs(Workspace:GetDescendants()) do
  240. if part:IsA("BasePart") then
  241. lowestY = math.min(lowestY, part.Position.Y)
  242. end
  243. end
  244. antiVoidPart.Position = Vector3.new(0, lowestY - 5, 0)
  245.  
  246. antiVoidPart.Parent = Workspace
  247. end
  248.  
  249. AntiVoidTab:AddToggle({
  250. Name = "Anti Void",
  251. Default = false,
  252. Callback = function(Value)
  253. if Value then
  254. createAntiVoid()
  255. else
  256. antiVoidPart:Destroy()
  257. antiVoidPart = nil
  258. end
  259. end
  260. })
  261.  
  262. -- Premium Features Lock Example
  263. if not isPremiumUser() then
  264. -- Hide or disable premium features for non-premium users
  265. FlingTab:DisableTab("Premium Fling")
  266. end
  267.  
  268. -- Make sure everything is initialized at the end
  269. task.wait(1) -- Add a slight delay before calling Init to allow UI to load properly
  270. OrionLib:Init()
  271.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement