-- UI Library for GUI creation local TweenService = game:GetService("TweenService") local UserInputService = game:GetService("UserInputService") -- Create ScreenGui local ScreenGui = Instance.new("ScreenGui") ScreenGui.Parent = game.CoreGui ScreenGui.Name = "ExecutorGUI" -- Frame setup local MainFrame = Instance.new("Frame") MainFrame.Parent = ScreenGui MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) MainFrame.AnchorPoint = Vector2.new(0.5, 0.5) MainFrame.Position = UDim2.new(0.5, 0, 0.5, 0) MainFrame.Size = UDim2.new(0, 400, 0, 300) MainFrame.Visible = true MainFrame.BorderSizePixel = 0 -- UI corner for rounded edges local UICorner = Instance.new("UICorner") UICorner.Parent = MainFrame UICorner.CornerRadius = UDim.new(0, 10) -- Title local Title = Instance.new("TextLabel") Title.Parent = MainFrame Title.Text = "Executor GUI" Title.TextSize = 24 Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.Font = Enum.Font.GothamBold Title.BackgroundTransparency = 1 Title.Size = UDim2.new(1, 0, 0, 50) Title.Position = UDim2.new(0, 0, 0, 0) -- Dragging functionality for the GUI local dragging = false local dragInput, dragStart, startPos MainFrame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true dragStart = input.Position startPos = MainFrame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) MainFrame.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement then dragInput = input end end) UserInputService.InputChanged:Connect(function(input) if input == dragInput and dragging then local delta = input.Position - dragStart MainFrame.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end end) -- Location Auto-Input local LocationLabel = Instance.new("TextLabel") LocationLabel.Parent = MainFrame LocationLabel.Text = "Designated Location:" LocationLabel.TextSize = 16 LocationLabel.TextColor3 = Color3.fromRGB(255, 255, 255) LocationLabel.Font = Enum.Font.Gotham LocationLabel.BackgroundTransparency = 1 LocationLabel.Size = UDim2.new(1, 0, 0, 50) LocationLabel.Position = UDim2.new(0, 0, 0.2, 0) local LocationValue = Instance.new("TextBox") LocationValue.Parent = MainFrame LocationValue.Text = "0, 0, 0" -- Default designated location LocationValue.TextSize = 16 LocationValue.TextColor3 = Color3.fromRGB(255, 255, 255) LocationValue.Font = Enum.Font.Gotham LocationValue.BackgroundColor3 = Color3.fromRGB(50, 50, 50) LocationValue.Size = UDim2.new(0.8, 0, 0, 30) LocationValue.Position = UDim2.new(0.1, 0, 0.3, 0) LocationValue.ClearTextOnFocus = false local function ParseLocation(text) local coords = {} for num in text:gmatch("[-]?%d+%.?%d*") do table.insert(coords, tonumber(num)) end if #coords == 3 then return Vector3.new(coords[1], coords[2], coords[3]) else return nil end end -- Loop Teleport Button local LoopTPButton = Instance.new("TextButton") LoopTPButton.Parent = MainFrame LoopTPButton.Text = "Start TP" LoopTPButton.TextSize = 16 LoopTPButton.TextColor3 = Color3.fromRGB(255, 255, 255) LoopTPButton.Font = Enum.Font.Gotham LoopTPButton.BackgroundColor3 = Color3.fromRGB(50, 50, 150) LoopTPButton.Size = UDim2.new(0.4, 0, 0, 40) LoopTPButton.Position = UDim2.new(0.1, 0, 0.6, 0) local loopTP = false LoopTPButton.MouseButton1Click:Connect(function() loopTP = not loopTP if loopTP then LoopTPButton.Text = "Stop TP" else LoopTPButton.Text = "Start TP" end while loopTP do if game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character.PrimaryPart then local location = ParseLocation(LocationValue.Text) if location then game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(CFrame.new(location)) else LocationValue.Text = "Invalid Location!" loopTP = false LoopTPButton.Text = "Start TP" end end wait(0.5) end end) -- Loop Reset Button local LoopResetButton = Instance.new("TextButton") LoopResetButton.Parent = MainFrame LoopResetButton.Text = "Start Reset" LoopResetButton.TextSize = 16 LoopResetButton.TextColor3 = Color3.fromRGB(255, 255, 255) LoopResetButton.Font = Enum.Font.Gotham LoopResetButton.BackgroundColor3 = Color3.fromRGB(150, 50, 50) LoopResetButton.Size = UDim2.new(0.4, 0, 0, 40) LoopResetButton.Position = UDim2.new(0.5, 0, 0.6, 0) local loopReset = false LoopResetButton.MouseButton1Click:Connect(function() loopReset = not loopReset if loopReset then LoopResetButton.Text = "Stop Reset" else LoopResetButton.Text = "Start Reset" end while loopReset do if game.Players.LocalPlayer.Character then game.Players.LocalPlayer.Character:BreakJoints() end wait(2) -- Wait for 2 seconds before resetting again end end) -- Animation for GUI appearance local TweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local Tween = TweenService:Create(MainFrame, TweenInfo, {Position = UDim2.new(0.5, 0, 0.5, 0)}) MainFrame.Position = UDim2.new(0.5, 0, 1.5, 0) Tween:Play()