local CoreGui = game:GetService("CoreGui") local ReplicatedStorage = game:GetService("ReplicatedStorage") local UserInputService = game:GetService("UserInputService") -- Prevent duplicate GUIs if CoreGui:FindFirstChild("ExecActionGui") then CoreGui.ExecActionGui:Destroy() end -- Create ScreenGui inside CoreGui local screenGui = Instance.new("ScreenGui") screenGui.Name = "ExecActionGui" screenGui.ResetOnSpawn = false screenGui.Parent = CoreGui -- Main Container Frame local mainFrame = Instance.new("Frame") mainFrame.Name = "MainFrame" mainFrame.Size = UDim2.new(0, 220, 0, 110) mainFrame.Position = UDim2.new(0.5, -110, 0.4, -55) mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 35) mainFrame.BorderSizePixel = 0 mainFrame.Parent = screenGui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 6) corner.Parent = mainFrame -- Top Drag/Title Bar local titleBar = Instance.new("Frame") titleBar.Name = "TitleBar" titleBar.Size = UDim2.new(1, 0, 0, 28) titleBar.BackgroundColor3 = Color3.fromRGB(20, 20, 25) titleBar.BorderSizePixel = 0 titleBar.Parent = mainFrame local titleCorner = Instance.new("UICorner") titleCorner.CornerRadius = UDim.new(0, 6) titleCorner.Parent = titleBar local titleLabel = Instance.new("TextLabel") titleLabel.Size = UDim2.new(1, -55, 1, 0) titleLabel.Position = UDim2.new(0, 8, 0, 0) titleLabel.BackgroundTransparency = 1 titleLabel.Text = "Deltarune Connected" titleLabel.TextColor3 = Color3.fromRGB(200, 200, 200) titleLabel.TextXAlignment = Enum.TextXAlignment.Left titleLabel.Font = Enum.Font.SourceSansBold titleLabel.TextSize = 13 titleLabel.Parent = titleBar -- Minimize/Circle Button local minimizeButton = Instance.new("TextButton") minimizeButton.Name = "MinimizeButton" minimizeButton.Size = UDim2.new(0, 20, 0, 20) minimizeButton.Position = UDim2.new(1, -48, 0, 4) minimizeButton.BackgroundColor3 = Color3.fromRGB(60, 60, 70) minimizeButton.Text = "-" minimizeButton.TextColor3 = Color3.fromRGB(255, 255, 255) minimizeButton.Font = Enum.Font.SourceSansBold minimizeButton.TextSize = 12 minimizeButton.Parent = titleBar local minCorner = Instance.new("UICorner") minCorner.CornerRadius = UDim.new(0, 4) minCorner.Parent = minimizeButton -- Close Button local closeButton = Instance.new("TextButton") closeButton.Name = "CloseButton" closeButton.Size = UDim2.new(0, 20, 0, 20) closeButton.Position = UDim2.new(1, -24, 0, 4) closeButton.BackgroundColor3 = Color3.fromRGB(180, 40, 40) closeButton.Text = "X" closeButton.TextColor3 = Color3.fromRGB(255, 255, 255) closeButton.Font = Enum.Font.SourceSansBold closeButton.TextSize = 12 closeButton.Parent = titleBar local closeCorner = Instance.new("UICorner") closeCorner.CornerRadius = UDim.new(0, 4) closeCorner.Parent = closeButton -- Input Box: Target Name local nameInput = Instance.new("TextBox") nameInput.Name = "NameInput" nameInput.Size = UDim2.new(0.9, 0, 0, 26) nameInput.Position = UDim2.new(0.05, 0, 0, 36) nameInput.BackgroundColor3 = Color3.fromRGB(20, 20, 24) nameInput.Text = "Cuptain" nameInput.PlaceholderText = "Enter Target Name..." nameInput.TextColor3 = Color3.fromRGB(255, 255, 255) nameInput.PlaceholderColor3 = Color3.fromRGB(120, 120, 120) nameInput.Font = Enum.Font.SourceSans nameInput.TextSize = 12 nameInput.ClearTextOnFocus = false nameInput.Parent = mainFrame local inputCorner = Instance.new("UICorner") inputCorner.CornerRadius = UDim.new(0, 5) inputCorner.Parent = nameInput -- Button: Client Morph Execution local runButton = Instance.new("TextButton") runButton.Name = "RunButton" runButton.Size = UDim2.new(0.9, 0, 0, 28) runButton.Position = UDim2.new(0.05, 0, 0, 70) runButton.BackgroundColor3 = Color3.fromRGB(0, 160, 110) runButton.Text = "Client Morph" runButton.TextColor3 = Color3.fromRGB(255, 255, 255) runButton.Font = Enum.Font.SourceSansBold runButton.TextSize = 12 runButton.Parent = mainFrame local runButtonCorner = Instance.new("UICorner") runButtonCorner.CornerRadius = UDim.new(0, 5) runButtonCorner.Parent = runButton -- Circle Indicator (Hidden by default) local circleIcon = Instance.new("TextButton") circleIcon.Name = "CircleIcon" circleIcon.Size = UDim2.new(1, 0, 1, 0) circleIcon.BackgroundTransparency = 1 circleIcon.Text = "⚡" circleIcon.TextColor3 = Color3.fromRGB(255, 255, 255) circleIcon.TextSize = 18 circleIcon.Font = Enum.Font.SourceSansBold circleIcon.Visible = false circleIcon.Parent = mainFrame ---------------------------------------------------- -- ROBUST DRAGGING LOGIC ---------------------------------------------------- local dragging = false local dragInput, dragStart, startPos local function update(input) 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 local function setupDrag(obj) obj.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch 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) obj.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) end setupDrag(titleBar) setupDrag(mainFrame) UserInputService.InputChanged:Connect(function(input) if input == dragInput and dragging then update(input) end end) ---------------------------------------------------- -- MINIMIZE / CIRCLE TOGGLE LOGIC ---------------------------------------------------- local isMinimized = false local function toggleMinimize() isMinimized = not isMinimized if isMinimized then mainFrame.Size = UDim2.new(0, 45, 0, 45) corner.CornerRadius = UDim.new(1, 0) titleBar.Visible = false nameInput.Visible = false runButton.Visible = false circleIcon.Visible = true else mainFrame.Size = UDim2.new(0, 220, 0, 110) corner.CornerRadius = UDim.new(0, 6) titleBar.Visible = true nameInput.Visible = true runButton.Visible = true circleIcon.Visible = false end end minimizeButton.MouseButton1Click:Connect(toggleMinimize) circleIcon.MouseButton1Click:Connect(toggleMinimize) ---------------------------------------------------- -- FUNCTIONALITY ---------------------------------------------------- closeButton.MouseButton1Click:Connect(function() screenGui:Destroy() end) local function getTargetName() local text = nameInput.Text if not text or text == "" then return "Cuptain" end return text end runButton.MouseButton1Click:Connect(function() task.spawn(function() local target = getTargetName() local sequence = {1, 2, 3} local requestsRemote = ReplicatedStorage:FindFirstChild("ReplicationRequests") local replicationRemote = ReplicatedStorage:FindFirstChild("Replication") local actions = { [1] = function() if replicationRemote then pcall(function() if typeof(firesignal) == "function" then firesignal(replicationRemote.OnClientEvent, 6, target) end end) end end, [2] = function() if replicationRemote then pcall(function() replicationRemote:FireServer(6, target) end) end end, [3] = function() if requestsRemote then pcall(function() requestsRemote:InvokeServer(1) end) end end } for index, actionId in ipairs(sequence) do if actions[actionId] then actions[actionId]() end if index < #sequence then task.wait(0.2) end end end) end)