Advertisement
VenoxComeback

Untitled

Mar 6th, 2025 (edited)
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.37 KB | None | 0 0
  1. -- Save the entire Lua script as a string
  2. local scriptSource = [[
  3. -- Whitelist Usernames
  4. local whitelistedUsers = {
  5. "RavyyFrm", -- Add any usernames you want to allow here
  6. "iiu9017", -- Example of another whitelisted user
  7. }
  8.  
  9. local player = game.Players.LocalPlayer
  10. local username = player.Name
  11.  
  12. -- Function to check if user is whitelisted
  13. local function isWhitelisted(userName)
  14. for _, whitelistedName in ipairs(whitelistedUsers) do
  15. if userName == whitelistedName then
  16. return true
  17. end
  18. end
  19. return false
  20. end
  21.  
  22. -- Check if the player is whitelisted
  23. if isWhitelisted(username) then
  24. -- If whitelisted, load the UI library
  25. local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/Consistt/Ui/main/UnLeaked"))()
  26.  
  27. library.rank = "developer"
  28. local Wm = library:Watermark("xsx example | v" .. library.version .. " | " .. library:GetUsername() .. " | rank: " .. library.rank)
  29. local FpsWm = Wm:AddWatermark("fps: " .. library.fps)
  30.  
  31. coroutine.wrap(function()
  32. while wait(.75) do
  33. FpsWm:Text("fps: " .. library.fps)
  34. end
  35. end)()
  36.  
  37. local Notif = library:InitNotifications()
  38.  
  39. local LoadingXSX = Notif:Notify("Loading xsx lib v2, please be patient.", 5, "information")
  40.  
  41. library.title = "Vigil"
  42.  
  43. library:Introduction()
  44. wait(1)
  45. local Init = library:Init()
  46.  
  47. -- Fly Tab
  48. local Tab1 = Init:NewTab("Flying Tab")
  49. local Section1 = Tab1:NewSection("Fly Components")
  50.  
  51. -- Fly script (Modified)
  52. local function initializeFlying(character)
  53. local humanoid = character:WaitForChild("Humanoid")
  54. local userInputService = game:GetService("UserInputService")
  55. local camera = game.Workspace.CurrentCamera -- Reference to the camera
  56.  
  57. local flying = false -- Track flying status
  58. local flyingSpeed = 500 -- Set flying speed
  59. local bodyGyro, bodyVelocity -- Objects for smooth flight
  60. local drag = 2 -- Drag for smoother flight
  61.  
  62. -- Function to start or stop flying
  63. local function toggleFly()
  64. flying = not flying -- Toggle flying status
  65. if flying then
  66. -- Create BodyGyro for smooth turning
  67. bodyGyro = Instance.new("BodyGyro")
  68. bodyGyro.MaxTorque = Vector3.new(400000, 400000, 400000) -- Max torque for smooth turning
  69. bodyGyro.CFrame = character.HumanoidRootPart.CFrame
  70. bodyGyro.Parent = character.HumanoidRootPart
  71.  
  72. -- Create BodyVelocity for controlled flight
  73. bodyVelocity = Instance.new("BodyVelocity")
  74. bodyVelocity.MaxForce = Vector3.new(400000, 400000, 400000)
  75. bodyVelocity.Velocity = Vector3.new(0, 0, 0) -- Initial velocity is 0
  76. bodyVelocity.P = 10000 -- High power for responsive movement
  77. bodyVelocity.Parent = character.HumanoidRootPart
  78.  
  79. -- Disable gravity and auto-rotation while flying
  80. humanoid.PlatformStand = true
  81. humanoid.AutoRotate = false
  82.  
  83. -- Fly movement loop
  84. game:GetService("RunService").Heartbeat:Connect(function()
  85. if flying then
  86. -- Calculate forward movement direction based on the camera's facing direction
  87. local moveDirection = camera.CFrame.LookVector
  88. local rightDirection = camera.CFrame.RightVector
  89. local upDirection = Vector3.new(0, 1, 0)
  90.  
  91. -- Start by setting velocity to zero
  92. local velocity = Vector3.new(0, 0, 0)
  93.  
  94. -- Horizontal movement (WASD)
  95. if userInputService:IsKeyDown(Enum.KeyCode.W) then
  96. velocity = velocity + moveDirection * flyingSpeed
  97. end
  98. if userInputService:IsKeyDown(Enum.KeyCode.S) then
  99. velocity = velocity - moveDirection * flyingSpeed
  100. end
  101. if userInputService:IsKeyDown(Enum.KeyCode.A) then
  102. velocity = velocity - rightDirection * flyingSpeed
  103. end
  104. if userInputService:IsKeyDown(Enum.KeyCode.D) then
  105. velocity = velocity + rightDirection * flyingSpeed
  106. end
  107.  
  108. -- Vertical movement (Spacebar and Shift)
  109. if userInputService:IsKeyDown(Enum.KeyCode.Space) then
  110. velocity = velocity + upDirection * flyingSpeed
  111. end
  112. if userInputService:IsKeyDown(Enum.KeyCode.LeftShift) then
  113. velocity = velocity - upDirection * flyingSpeed
  114. end
  115.  
  116. -- Smooth out the movement by applying drag (slows the movement for smoother flying)
  117. bodyVelocity.Velocity = velocity - bodyVelocity.Velocity * drag * game:GetService("RunService").Heartbeat:Wait()
  118.  
  119. -- Smooth rotation towards the camera's facing direction
  120. bodyGyro.CFrame = CFrame.new(character.HumanoidRootPart.Position, character.HumanoidRootPart.Position + camera.CFrame.LookVector)
  121. else
  122. -- Reset and stop flying
  123. bodyVelocity:Destroy()
  124. bodyGyro:Destroy()
  125. humanoid.PlatformStand = false
  126. humanoid.AutoRotate = true
  127. end
  128. end)
  129. else
  130. -- Reset and stop flying
  131. bodyVelocity:Destroy()
  132. bodyGyro:Destroy()
  133. humanoid.PlatformStand = false
  134. humanoid.AutoRotate = true
  135. end
  136. end
  137.  
  138. -- Create Fly button to toggle flying
  139. local Button1 = Tab1:NewButton("Fly", function()
  140. toggleFly() -- Trigger flying when the button is pressed
  141. end)
  142. end
  143.  
  144. -- Reinitialize flying system after player respawns
  145. player.CharacterAdded:Connect(function(character)
  146. initializeFlying(character)
  147. end)
  148.  
  149. -- Buttons for other features (Esp, Inf Jump, etc.)
  150. local scriptLoaded = false -- Variable to check if the script is loaded
  151.  
  152. local Button2 = Tab1:NewButton("Esp", function()
  153. if not scriptLoaded then
  154. -- Load and execute the script
  155. loadstring(game:HttpGet("https://pastebin.com/raw/UAvMUgPK"))() -- Replace with your desired script URL
  156. scriptLoaded = true -- Mark the script as loaded
  157. else
  158. -- If needed, add functionality to "unload" the script here
  159. -- For example, reset the state or stop the effects of the loaded script
  160. scriptLoaded = false -- Mark the script as unloaded
  161. end
  162. end)
  163.  
  164. local Button4 = Tab1:NewButton("Inf Jump", function()
  165. if not scriptLoaded then
  166. -- Load and execute the script
  167. loadstring(game:HttpGet("https://pastebin.com/raw/1erE1nrB"))() -- Replace with your desired script URL
  168. scriptLoaded = true -- Mark the script as loaded
  169. else
  170. -- If needed, add functionality to "unload" the script here
  171. -- For example, reset the state or stop the effects of the loaded script
  172. scriptLoaded = false -- Mark the script as unloaded
  173. end
  174. end)
  175.  
  176. local Button5 = Tab1:NewButton("Instant Prompts", function()
  177. if not scriptLoaded then
  178. -- Load and execute the script
  179. loadstring(game:HttpGet("https://pastebin.com/raw/bgg6xuVd"))() -- Replace with your desired script URL
  180. scriptLoaded = true -- Mark the script as loaded
  181. else
  182. -- If needed, add functionality to "unload" the script here
  183. -- For example, reset the state or stop the effects of the loaded script
  184. scriptLoaded = false -- Mark the script as unloaded
  185. end
  186. end)
  187.  
  188. -- Create the new tab
  189. local Tab2 = Init:NewTab("By Pass")
  190.  
  191. -- Create "No FallDamage" button in the new tab
  192. local Button3 = Tab2:NewButton("No FallDamage", function()
  193. if not scriptLoaded then
  194. -- Load and execute the script
  195. loadstring(game:HttpGet("https://pastebin.com/raw/R1j7qrKF"))() -- Replace with your desired script URL
  196. scriptLoaded = true -- Mark the script as loaded
  197. else
  198. -- If needed, add functionality to "unload" the script here
  199. -- For example, reset the state or stop the effects of the loaded script
  200. scriptLoaded = false -- Mark the script as unloaded
  201. end
  202. end)
  203.  
  204. -- Create "Eat Bypass" button in the new tab
  205. local Button3 = Tab2:NewButton("Eat Bypass", function()
  206. if not scriptLoaded then
  207. -- Load and execute the script
  208. loadstring(game:HttpGet("https://pastebin.com/raw/5d6JgAPy"))() -- Replace with your desired script URL
  209. scriptLoaded = true -- Mark the script as loaded
  210. else
  211. -- If needed, add functionality to "unload" the script here
  212. -- For example, reset the state or stop the effects of the loaded script
  213. scriptLoaded = false -- Mark the script as unloaded
  214. end
  215. end)
  216.  
  217. else
  218. -- If the player is not whitelisted, show a notification
  219. local NotificationHolder = loadstring(game:HttpGet("https://raw.githubusercontent.com/BocusLuke/UI/main/STX/Module.Lua"))()
  220. local Notification = loadstring(game:HttpGet("https://raw.githubusercontent.com/BocusLuke/UI/main/STX/Client.Lua"))()
  221.  
  222. Notification:Notify(
  223. {Title = "You are not whitelisted!", Description = "Get whitelisted at https://discord.gg/CcB32rDc9c"},
  224. {OutlineColor = Color3.fromRGB(255, 0, 0), Time = 5, Type = "option"},
  225. {Image = "http://www.roblox.com/asset/?id=6023426923", ImageColor = Color3.fromRGB(255, 84, 84)}
  226. )
  227. end
  228. ]]
  229.  
  230. -- Restart the entire script upon respawn
  231. game.Players.LocalPlayer.CharacterAdded:Connect(function()
  232. loadstring(scriptSource)() -- Execute the entire script again
  233. end)
  234.  
  235. -- Initial execution of the script
  236. loadstring(scriptSource)() -- Run the script the first time
  237.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement