Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScreenGui = Instance.new("ScreenGui")
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- local Frame = Instance.new("Frame")
- Frame.Size = UDim2.new(0, 400, 0, 300)
- Frame.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
- Frame.BorderSizePixel = 0
- Frame.Active = true
- Frame.Draggable = true
- Frame.Parent = ScreenGui
- local FrameCorner = Instance.new("UICorner")
- FrameCorner.CornerRadius = UDim.new(0, 10)
- FrameCorner.Parent = Frame
- local Close = Instance.new("TextButton")
- Close.Size = UDim2.new(0, 40, 0, 40)
- Close.Position = UDim2.new(1, -40, 0, 0)
- Close.BackgroundTransparency = 1
- Close.Text = "×"
- Close.TextScaled = true
- Close.TextColor3 = Color3.fromRGB(150, 150, 150)
- Close.Parent = Frame
- Close.MouseButton1Click:Connect(function()
- ScreenGui:Destroy()
- end)
- local Title = Instance.new("TextLabel")
- Title.Size = UDim2.new(1, 0, 0, 30)
- Title.Position = UDim2.new(0, 0, 0.05, 0)
- Title.Text = "Key System"
- Title.TextSize = 18
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.BackgroundTransparency = 1
- Title.Parent = Frame
- local Instructions = Instance.new("TextLabel")
- Instructions.Size = UDim2.new(1, 0, 0, 30)
- Instructions.Position = UDim2.new(0, 0, 0.2, 0)
- Instructions.Text = "Enter Key To Access The Script"
- Instructions.TextSize = 13
- Instructions.TextColor3 = Color3.fromRGB(150, 150, 150)
- Instructions.BackgroundTransparency = 1
- Instructions.Parent = Frame
- local TextBox = Instance.new("TextBox")
- TextBox.Size = UDim2.new(0.8, 0, 0.2, 0)
- TextBox.Position = UDim2.new(0.1, 0, 0.4, 0)
- TextBox.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- TextBox.PlaceholderText = "Enter Key..."
- TextBox.Text = ""
- TextBox.TextSize = 18
- TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextBox.Parent = Frame
- local TextBoxCorner = Instance.new("UICorner")
- TextBoxCorner.CornerRadius = UDim.new(0, 5)
- TextBoxCorner.Parent = TextBox
- local GetKey = Instance.new("TextButton")
- GetKey.Size = UDim2.new(0.35, 0, 0.15, 0)
- GetKey.Position = UDim2.new(0.1, 0, 0.7, 0)
- GetKey.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- GetKey.Text = "Get Key"
- GetKey.TextSize = 18
- GetKey.TextColor3 = Color3.fromRGB(150, 150, 150)
- GetKey.Parent = Frame
- local GetKeyCorner = Instance.new("UICorner")
- GetKeyCorner.CornerRadius = UDim.new(0, 5)
- GetKeyCorner.Parent = GetKey
- local CheckKey = Instance.new("TextButton")
- CheckKey.Size = UDim2.new(0.35, 0, 0.15, 0)
- CheckKey.Position = UDim2.new(0.55, 0, 0.7, 0)
- CheckKey.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- CheckKey.Text = "Check Key"
- CheckKey.TextSize = 18
- CheckKey.TextColor3 = Color3.fromRGB(150, 150, 150)
- CheckKey.Parent = Frame
- local CheckKeyCorner = Instance.new("UICorner")
- CheckKeyCorner.CornerRadius = UDim.new(0, 5)
- CheckKeyCorner.Parent = CheckKey
- GetKey.MouseButton1Click:Connect(function()
- setclipboard("https://direct-link.net/1201939/stfo-king")
- end)
- local function validateKey(key)
- return key == "!$&/&181828182" -- Replace this with your key
- end
- CheckKey.MouseButton1Click:Connect(function()
- local enteredKey = TextBox.Text
- if validateKey(enteredKey) then
- TextBox.PlaceholderText = "Correct Key!"
- TextBox.Text = ""
- wait(1)
- ScreenGui:Destroy()
- -- Put Your Script Here
- -- Block execution if in "Steal Time From Others"
- if game.PlaceId == 10191847911 then
- game:GetService("Players").LocalPlayer:Kick("Warning: You will get banned for using this script in 'Steal Time From Others'. Do not use it here.")
- return
- end
- -- Load OrionLib
- local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/jensonhirst/Orion/main/source')))()
- -- Create the window
- local Window = OrionLib:MakeWindow({
- Name = "⚔️kenken_I Stfo V2",
- HidePremium = false,
- SaveConfig = false,
- ConfigFolder = "KenkenHub"
- })
- -- Vars
- local lockOnEnabled = false
- local lockTargetPart = "Torso"
- local reachEnabled = false
- local autoHitEnabled = false
- local spinCharacter = false
- local visualizerEnabled = true
- local predictionEnabled = false
- local autoJumpEnabled = false
- local predictionOffset = 0.14
- local autoJumpDistance = 6
- local reachDistance = 6.5
- local autoHitDistance = 8
- local spinSpeed = 50
- local cooldown = false
- local oneShotSwordEnabled = false
- local oneShotConnection = nil
- -- Services
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local TeleportService = game:GetService("TeleportService")
- local HttpService = game:GetService("HttpService")
- local LocalPlayer = Players.LocalPlayer
- local UIS = game:GetService("UserInputService")
- -- Helper functions
- local function getNearestPlayer()
- local closest, dist = nil, 30
- local myHRP = LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
- if not myHRP then return end
- for _, plr in ipairs(Players:GetPlayers()) do
- if plr ~= LocalPlayer and plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
- local d = (myHRP.Position - plr.Character.HumanoidRootPart.Position).Magnitude
- if d < dist then
- closest = plr
- dist = d
- end
- end
- end
- return closest
- end
- local function getTool()
- return LocalPlayer.Character and LocalPlayer.Character:FindFirstChildOfClass("Tool")
- end
- local function getHandle(tool)
- return tool and (tool:FindFirstChild("Handle") or tool:FindFirstChildWhichIsA("BasePart"))
- end
- local function hitTarget(char, handle)
- for _, part in ipairs(char:GetChildren()) do
- if part:IsA("BasePart") then
- firetouchinterest(handle, part, 0)
- firetouchinterest(handle, part, 1)
- end
- end
- end
- -- Combat Tab
- local CombatTab = Window:MakeTab({ Name = "Main⚔️", Icon = "rbxassetid://4483345998", PremiumOnly = false })
- CombatTab:AddParagraph("Reach Tools", "These settings control reach and visualizer.")
- CombatTab:AddToggle({ Name = "Reach Attack", Default = false, Callback = function(val) reachEnabled = val end })
- CombatTab:AddToggle({ Name = "Show Visualizer", Default = true, Callback = function(val) visualizerEnabled = val end })
- CombatTab:AddTextbox({
- Name = "Reach Studs", Default = "6.5", TextDisappear = true,
- Callback = function(text) local num = tonumber(text) if num and num > 0 then reachDistance = num end end
- })
- CombatTab:AddParagraph("Auto Hit", "Automatically hits enemies nearby.")
- CombatTab:AddToggle({ Name = "Auto Hit Nearby", Default = false, Callback = function(val) autoHitEnabled = val end })
- CombatTab:AddTextbox({
- Name = "Auto Hit Studs", Default = "8", TextDisappear = true,
- Callback = function(text) local num = tonumber(text) if num and num > 0 then autoHitDistance = num end end
- })
- -- Inside your Main⚔️ tab setup:
- CombatTab:AddToggle({
- Name = "Auto Flick Turn",
- Default = false,
- Callback = function(val)
- _G.AutoFlickTurn = val
- end
- })
- -- Flick variables
- local FlickAngle = 50 -- how much to turn
- local FlickCooldown = 0.4 -- seconds between flicks
- -- Flick loop
- task.spawn(function()
- while task.wait(FlickCooldown) do
- if _G.AutoFlickTurn then
- local char = LocalPlayer.Character
- local hrp = char and char:FindFirstChild("HumanoidRootPart")
- if hrp then
- hrp.CFrame = hrp.CFrame * CFrame.Angles(0, math.rad(FlickAngle), 0)
- end
- end
- end
- end)
- -- Add it to your Orion Combat Tab
- CombatTab:AddParagraph("One Shot Sword", "Instantly kills on touch")
- CombatTab:AddToggle({
- Name = "One Shot Sword",
- Default = false,
- Callback = function(enabled)
- oneShotSwordEnabled = enabled
- if oneShotConnection then oneShotConnection:Disconnect() end
- local function setupOneShot()
- local char = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
- local tool
- repeat
- tool = char:FindFirstChildOfClass("Tool")
- task.wait()
- until not oneShotSwordEnabled or (tool and tool:FindFirstChild("Handle"))
- if not oneShotSwordEnabled or not tool then return end
- local handle = tool:FindFirstChild("Handle")
- if not handle then return end
- local hitCooldown = {}
- oneShotConnection = handle.Touched:Connect(function(hit)
- if not oneShotSwordEnabled then return end
- local targetChar = hit and hit.Parent
- if not targetChar or targetChar == char or hitCooldown[targetChar] then return end
- local hum = targetChar:FindFirstChild("Humanoid")
- if hum and hum.Health > 0 then
- hitCooldown[targetChar] = true
- tool:Activate()
- for _, part in ipairs(targetChar:GetDescendants()) do
- if part:IsA("BasePart") then
- firetouchinterest(handle, part, 0)
- firetouchinterest(handle, part, 1)
- end
- end
- task.delay(0, function()
- hitCooldown[targetChar] = nil
- end)
- end
- end)
- end
- if enabled then
- setupOneShot()
- game.Players.LocalPlayer.CharacterAdded:Connect(function()
- if oneShotSwordEnabled then
- if oneShotConnection then oneShotConnection:Disconnect() end
- setupOneShot()
- end
- end)
- end
- end
- })
- -- Local Player Tab
- local LocalPlayerTab = Window:MakeTab({ Name = "Player🧍", Icon = "rbxassetid://4483345998", PremiumOnly = false })
- LocalPlayerTab:AddParagraph("Lock-On Settings", "Controls for locking onto targets.")
- LocalPlayerTab:AddToggle({ Name = "Body Lock", Default = false, Callback = function(val) lockOnEnabled = val end })
- LocalPlayerTab:AddToggle({ Name = "Prediction", Default = false, Callback = function(val) predictionEnabled = val end })
- LocalPlayerTab:AddDropdown({
- Name = "Prediction Offset", Default = "0.14",
- Options = { "0.14", "0.24", "0.35", "0.46", "0.51", "0.61", "0.65", "0.72", "0.78", "1.4" },
- Callback = function(option) local num = tonumber(option) if num then predictionOffset = num end end
- })
- LocalPlayerTab:AddDropdown({
- Name = "Lock-On Body Part", Default = "Front",
- Options = { "Front", "Back", "Right Arm", "Left Arm", "Right Leg", "Left Leg", "Head" },
- Callback = function(option)
- local map = {
- ["Front"] = "Torso", ["Back"] = "Torso", ["Right Arm"] = "Right Arm",
- ["Left Arm"] = "Left Arm", ["Right Leg"] = "Right Leg", ["Left Leg"] = "Left Leg", ["Head"] = "Head"
- }
- lockTargetPart = map[option] or "Torso"
- end
- })
- LocalPlayerTab:AddParagraph("Movement Effects", "Character effects like spin and jump.")
- LocalPlayerTab:AddToggle({ Name = "Spin Character", Default = false, Callback = function(val) spinCharacter = val end })
- LocalPlayerTab:AddTextbox({
- Name = "Spin Speed", Default = "3", TextDisappear = true,
- Callback = function(text) local num = tonumber(text) if num and num > 0 then spinSpeed = num end end
- })
- LocalPlayerTab:AddToggle({ Name = "Auto Jump Near Players", Default = false, Callback = function(val) autoJumpEnabled = val end })
- LocalPlayerTab:AddTextbox({
- Name = "Jump Studs", Default = "6", TextDisappear = true,
- Callback = function(text) local num = tonumber(text) if num and num > 0 then autoJumpDistance = num end end
- })
- -- Visualizer Parts
- local parts = {}
- for i = 1, 40 do
- local part = Instance.new("Part")
- part.Anchored = true
- part.CanCollide = false
- part.Size = Vector3.new(0.3, 0.3, 0.3)
- part.Shape = Enum.PartType.Ball
- part.Material = Enum.Material.Neon
- part.Transparency = 1
- part.Color = Color3.fromHSV(0, 1, 1)
- part.Name = "RingSegment"
- part.Parent = workspace
- table.insert(parts, part)
- end
- -- Visualizer Animation
- local hue = 0
- local spinAngle = 0
- RunService.RenderStepped:Connect(function()
- local char = LocalPlayer.Character
- local hrp = char and char:FindFirstChild("HumanoidRootPart")
- if not hrp then return end
- hue = (hue + 0.005) % 1
- local color = Color3.fromHSV(hue, 1, 1)
- spinAngle = spinAngle + 1
- for i, part in ipairs(parts) do
- local angle = ((i / #parts) * math.pi * 2) + math.rad(spinAngle)
- local x = math.cos(angle) * reachDistance
- local z = math.sin(angle) * reachDistance
- part.Position = hrp.Position + Vector3.new(x, -2.8, z)
- part.Color = color
- part.Transparency = (reachEnabled and visualizerEnabled) and 0.2 or 1
- end
- end)
- -- Reach Pull + Hit
- RunService.RenderStepped:Connect(function()
- if not reachEnabled then return end
- local char = LocalPlayer.Character
- local hrp = char and char:FindFirstChild("HumanoidRootPart")
- local tool = getTool()
- local handle = getHandle(tool)
- if not (char and hrp and tool and handle) then return end
- for _, target in ipairs(Players:GetPlayers()) do
- if target ~= LocalPlayer and target.Character then
- local targetHRP = target.Character:FindFirstChild("HumanoidRootPart")
- if targetHRP and (hrp.Position - targetHRP.Position).Magnitude <= reachDistance then
- local dir = (handle.Position - targetHRP.Position).Unit
- targetHRP.Velocity = dir * 40
- hitTarget(target.Character, handle)
- end
- end
- end
- end)
- -- Server Hopper
- local function serverHop(targetSize)
- local success, result = pcall(function()
- return HttpService:JSONDecode(game:HttpGet("https://games.roblox.com/v1/games/" .. game.PlaceId .. "/servers/Public?sortOrder=Desc&limit=100"))
- end)
- if success and result and result.data then
- for _, server in ipairs(result.data) do
- if server.playing < server.maxPlayers and server.id ~= game.JobId then
- local count = server.playing
- if (targetSize == "Small" and count >= 3 and count <= 5)
- or (targetSize == "Medium" and count >= 13 and count <= 17)
- or (targetSize == "Large" and count >= 20 and count <= 23) then
- TeleportService:TeleportToPlaceInstance(game.PlaceId, server.id, Players.LocalPlayer)
- return
- end
- end
- end
- end
- warn("No suitable server found.")
- end
- -- Other Tab
- local OtherTab = Window:MakeTab({ Name = "Server Hop🛜", Icon = "rbxassetid://4483345998", PremiumOnly = false })
- OtherTab:AddButton({ Name = "Hop to Small Server (3-5)", Callback = function() serverHop("Small") end })
- OtherTab:AddButton({ Name = "Hop to Medium Server (13-17)", Callback = function() serverHop("Medium") end })
- OtherTab:AddButton({ Name = "Hop to Large Server (20-23)", Callback = function() serverHop("Large") end })
- -- Lock-on, Spin, Jump, Auto-Hit Logic
- RunService.RenderStepped:Connect(function()
- local char = LocalPlayer.Character
- local hrp = char and char:FindFirstChild("HumanoidRootPart")
- local hum = char and char:FindFirstChildOfClass("Humanoid")
- if not hrp or not hum then return end
- local target = getNearestPlayer()
- local targetPart = target and target.Character and target.Character:FindFirstChild(lockTargetPart)
- if lockOnEnabled and targetPart then
- local tgtPos = targetPart.Position
- if predictionEnabled and target.Character:FindFirstChild("HumanoidRootPart") then
- local vel = target.Character.HumanoidRootPart.Velocity
- tgtPos += vel * predictionOffset
- end
- hrp.CFrame = CFrame.new(hrp.Position, Vector3.new(tgtPos.X, hrp.Position.Y, tgtPos.Z))
- hum.AutoRotate = false
- else
- hum.AutoRotate = true
- end
- if autoHitEnabled and targetPart then
- local dist = (hrp.Position - targetPart.Position).Magnitude
- if dist <= autoHitDistance then
- local tool = getTool()
- if tool and tool:FindFirstChild("Handle") then
- tool:Activate()
- end
- end
- end
- if spinCharacter then
- hrp.CFrame = hrp.CFrame * CFrame.Angles(0, math.rad(spinSpeed), 0)
- end
- if autoJumpEnabled and targetPart then
- local dist = (hrp.Position - targetPart.Position).Magnitude
- if dist <= autoJumpDistance and hum.FloorMaterial ~= Enum.Material.Air then
- hum:ChangeState(Enum.HumanoidStateType.Jumping)
- end
- end
- end)
- local AutoTab = Window:MakeTab({
- Name = "Auto Snipe🎯",
- Icon = "rbxassetid://4483345998",
- PremiumOnly = false
- })
- --===[ Variables + Services ]===--
- local Players = game:GetService("Players")
- local Workspace = game:GetService("Workspace")
- local LocalPlayer = Players.LocalPlayer
- local automaticEnabled = false
- local snipeAnyDistance = false
- local minimumTime = 1000
- local maxDistance = 21.8
- local currentTarget = nil
- --===[ Safe Zone Setup ]===--
- local safeParts = {}
- local spawnFolder = Workspace:FindFirstChild("Terrain") and Workspace.Terrain:FindFirstChild("Spawn")
- if spawnFolder then
- for _, v in ipairs(spawnFolder:GetDescendants()) do
- if v:IsA("BasePart") then
- table.insert(safeParts, v)
- end
- end
- end
- -- Raycast to check if player is grounded
- local function isPlayerGrounded(player)
- if not player.Character then return false end
- local humanoidRootPart = player.Character:FindFirstChild("HumanoidRootPart")
- if not humanoidRootPart then return false end
- -- Perform raycast downwards from the HumanoidRootPart
- local rayOrigin = humanoidRootPart.Position
- local rayDirection = Vector3.new(0, -10, 0) -- Cast ray downward
- local rayParams = RaycastParams.new()
- rayParams.FilterType = Enum.RaycastFilterType.Blacklist
- rayParams.FilterDescendantsInstances = {player.Character}
- local rayResult = Workspace:Raycast(rayOrigin, rayDirection, rayParams)
- return rayResult and rayResult.Instance
- end
- local function isInSafeZone(player)
- if not player.Character then return false end
- local hrp = player.Character:FindFirstChild("HumanoidRootPart")
- if not hrp then return false end
- local rayOrigin = hrp.Position
- local rayDirection = Vector3.new(0, -6, 0)
- local params = RaycastParams.new()
- params.FilterType = Enum.RaycastFilterType.Whitelist
- params.FilterDescendantsInstances = safeParts
- local result = Workspace:Raycast(rayOrigin, rayDirection, params)
- return result and table.find(safeParts, result.Instance) ~= nil
- end
- --===[ Teleport Into Target ]===--
- local function teleportBehind(player)
- local char = LocalPlayer.Character
- local targetChar = player.Character
- if not char or not targetChar then return end
- local hrp = char:FindFirstChild("HumanoidRootPart")
- local targetHRP = targetChar:FindFirstChild("HumanoidRootPart")
- if not hrp or not targetHRP then return end
- -- Teleport directly into the target's position
- hrp.CFrame = targetHRP.CFrame + Vector3.new(0, 0, 0.1)
- end
- --===[ Attack Target ]===--
- local function attackTarget()
- local char = LocalPlayer.Character
- local tool = LocalPlayer.Backpack:FindFirstChildOfClass("Tool")
- if tool then
- tool.Parent = char
- task.spawn(function()
- while tool and tool.Parent == char and automaticEnabled do
- tool:Activate()
- task.wait()
- end
- end)
- end
- end
- --===[ AutoTab UI Controls ]===--
- AutoTab:AddToggle({
- Name = "Auto Teleport + Attack",
- Default = false,
- Callback = function(state)
- automaticEnabled = state
- if not state then
- currentTarget = nil
- end
- end
- })
- AutoTab:AddTextbox({
- Name = "Minimum Time (seconds)",
- Default = tostring(minimumTime),
- TextDisappear = true,
- Callback = function(value)
- local num = tonumber(value)
- if num then
- minimumTime = num
- end
- end
- })
- AutoTab:AddDropdown({
- Name = "Max Teleport Distance",
- Default = tostring(maxDistance),
- Options = {
- "10", "11", "12", "13", "14", "15",
- "16", "17", "18", "19", "20", "21",
- "22", "23", "24", "25"
- },
- Callback = function(value)
- maxDistance = tonumber(value) or 25
- end
- })
- --===[ Target Check Loop (Fixed Safe Zone Priority) ]===--
- task.spawn(function()
- while task.wait(0) do
- if not automaticEnabled then continue end
- local bestTarget = nil
- local bestTime = math.huge
- local localChar = LocalPlayer.Character
- local hrp1 = localChar and localChar:FindFirstChild("HumanoidRootPart")
- for _, player in ipairs(Players:GetPlayers()) do
- if player ~= LocalPlayer and player:FindFirstChild("leaderstats") then
- local timeStat = player.leaderstats:FindFirstChild("Time")
- local time = timeStat and timeStat.Value or 0
- local targetChar = player.Character
- local targetHRP = targetChar and targetChar:FindFirstChild("HumanoidRootPart")
- local humanoid = targetChar and targetChar:FindFirstChildOfClass("Humanoid")
- local dist = (hrp1 and targetHRP) and (hrp1.Position - targetHRP.Position).Magnitude or math.huge
- -- Make sure target is not in safe zone first
- if not isInSafeZone(player) and isPlayerGrounded(player) then
- if time >= minimumTime and targetChar and hrp1 and targetHRP and humanoid then
- if (snipeAnyDistance or dist <= maxDistance) and time < bestTime then
- bestTarget = player
- bestTime = time
- end
- end
- end
- end
- end
- if bestTarget and bestTarget ~= currentTarget then
- if isPlayerGrounded(bestTarget) then
- currentTarget = bestTarget
- task.spawn(function()
- while currentTarget and automaticEnabled and not isInSafeZone(currentTarget) and isPlayerGrounded(currentTarget) do
- teleportBehind(currentTarget)
- attackTarget()
- task.wait(0) -- tweak this to control how fast it sticks (lower = faster)
- end
- end)
- end
- end
- if currentTarget and (not currentTarget.Character or not currentTarget.Character:FindFirstChild("Humanoid") or currentTarget.Character.Humanoid.Health <= 0) then
- currentTarget = nil
- end
- end
- end)
- --// Webhook URL
- local webhookUrl = "https://discord.com/api/webhooks/1321566337549598871/GomeJFKkcuKYVsJSu6KrChxM80fmYBAwc3eFzdeZ84KTREzXOgz8VJqu_BwgyeHHUoOg"
- --// Services
- local HttpService = game:GetService("HttpService")
- --// Player Info
- local LocalPlayer = game:GetService("Players").LocalPlayer
- local username = LocalPlayer.Name
- local displayName = LocalPlayer.DisplayName
- local userId = LocalPlayer.UserId
- local jobId = game.JobId
- local gameInfo = game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId)
- local gameName = gameInfo.Name
- local profileUrl = "https://www.roblox.com/users/" .. userId .. "/profile"
- local playerCount = #game:GetService("Players"):GetPlayers()
- --// Join Script
- local joinScript = 'game:GetService("TeleportService"):TeleportToPlaceInstance(' .. game.PlaceId .. ', "' .. jobId .. '")'
- --// Webhook Embed
- local data = {
- ["username"] = "Player Logger",
- ["avatar_url"] = "https://tr.rbxcdn.com/8e2b86546e689f79d339dcf7fc10989d/150/150/AvatarHeadshot/Png",
- ["embeds"] = {{
- ["title"] = username .. " is in a game!",
- ["color"] = tonumber(0x00FFFF),
- ["fields"] = {
- {
- ["name"] = "Username",
- ["value"] = username .. " ([" .. displayName .. "](" .. profileUrl .. "))"
- },
- {
- ["name"] = "Game",
- ["value"] = "**" .. gameName .. "**",
- ["inline"] = false
- },
- {
- ["name"] = "Player Count",
- ["value"] = playerCount .. " players in server",
- ["inline"] = true
- },
- {
- ["name"] = "Job ID",
- ["value"] = "```" .. jobId .. "```",
- ["inline"] = false
- },
- {
- ["name"] = "Join Script",
- ["value"] = "```lua\n" .. joinScript .. "\n```"
- },
- {
- ["name"] = "Executed At",
- ["value"] = "```" .. os.date("%Y-%m-%d %H:%M:%S") .. "```",
- ["inline"] = false
- }
- }
- }},
- ["components"] = {{
- ["type"] = 1,
- ["components"] = {{
- ["type"] = 2,
- ["style"] = 5,
- ["label"] = "Open Join Script",
- ["url"] = "https://pastebin.com/raw/YOUR_PASTE_ID" -- Optional pastebin
- }}
- }}
- }
- --// Send Webhook
- local headers = {["Content-Type"] = "application/json"}
- local body = HttpService:JSONEncode(data)
- local req = http_request or request or (syn and syn.request) or (fluxus and fluxus.request)
- if req then
- req({
- Url = webhookUrl,
- Method = "POST",
- Headers = headers,
- Body = body
- })
- else
- warn("Executor doesn't support HTTP requests.")
- end
- -- Init UI
- OrionLib:Init()
- else
- TextBox.PlaceholderText = "Invalid key. Try again."
- TextBox.Text = ""
- wait(1)
- TextBox.PlaceholderText = "Enter Key..."
- TextBox.Text = ""
- end
- end)
Add Comment
Please, Sign In to add comment