-- EKMenu GUI Script (fehlerfrei & komplett) local Players = game:GetService("Players")local UserInputService = game:GetService("UserInputService")local CoreGui = game:GetService("CoreGui") local player = Players.LocalPlayerlocal NEON_COLOR = Color3.fromRGB(33, 150, 243) -- Funktion, um GUI dragbar zu machenlocal function makeDraggable(gui) local dragging, dragInput, dragStart, startPos gui.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = gui.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) gui.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) UserInputService.InputChanged:Connect(function(input) if input == dragInput and dragging then local delta = input.Position - dragStart gui.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end end)end -- GUI erstellenlocal function createGUI() -- Vorherige Instanz entfernen (falls vorhanden) local oldGui = CoreGui:FindFirstChild("EKMenu") if oldGui then oldGui:Destroy() end local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "EKMenu" ScreenGui.Parent = CoreGui ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling ScreenGui.ResetOnSpawn = false local Main = Instance.new("ScrollingFrame") Main.Name = "Main" Main.Parent = ScreenGui Main.BackgroundColor3 = Color3.fromRGB(15, 15, 15) Main.BackgroundTransparency = 0.1 Main.BorderSizePixel = 0 Main.Position = UDim2.new(0.3, 0, 0.2, 0) Main.Size = UDim2.new(0, 400, 0, 700) Main.Active = true Main.ClipsDescendants = true Main.CanvasSize = UDim2.new(0,0,0,0) Main.ScrollBarThickness = 6 local UICornerMain = Instance.new("UICorner") UICornerMain.CornerRadius = UDim.new(0, 10) UICornerMain.Parent = Main local Title = Instance.new("TextLabel") Title.Name = "Title" Title.Parent = Main Title.BackgroundTransparency = 1 Title.Position = UDim2.new(0, 15, 0, 10) Title.Size = UDim2.new(1, -30, 0, 30) Title.Font = Enum.Font.GothamBold Title.Text = "EK" Title.TextColor3 = NEON_COLOR Title.TextSize = 26 Title.TextXAlignment = Enum.TextXAlignment.Left local UIList = Instance.new("UIListLayout") UIList.SortOrder = Enum.SortOrder.LayoutOrder UIList.Padding = UDim.new(0, 10) UIList.Parent = Main UIList:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function() Main.CanvasSize = UDim2.new(0, 0, 0, UIList.AbsoluteContentSize.Y + 20) end) -- Funktion für Sektionstitel local function createSection(name) local sectionLabel = Instance.new("TextLabel") sectionLabel.Name = name.."Section" sectionLabel.Parent = Main sectionLabel.BackgroundTransparency = 1 sectionLabel.Size = UDim2.new(1, -30, 0, 28) sectionLabel.Font = Enum.Font.GothamBold sectionLabel.Text = name sectionLabel.TextColor3 = Color3.fromRGB(144, 202, 249) sectionLabel.TextSize = 20 sectionLabel.TextXAlignment = Enum.TextXAlignment.Left return sectionLabel end -- Button erstellen local function createButton(text) local btn = Instance.new("TextButton") btn.Parent = Main btn.Size = UDim2.new(1, -30, 0, 40) btn.BackgroundColor3 = Color3.fromRGB(8,8,8) btn.BorderSizePixel = 0 btn.AutoButtonColor = false btn.Font = Enum.Font.GothamBold btn.Text = text btn.TextColor3 = Color3.fromRGB(255,255,255) btn.TextSize = 16 local uicorner = Instance.new("UICorner") uicorner.Parent = btn uicorner.CornerRadius = UDim.new(0, 8) return btn end -- Toggle erstellen local function createToggle(text) local frame = Instance.new("Frame") frame.Parent = Main frame.Size = UDim2.new(1, -30, 0, 30) frame.BackgroundTransparency = 1 local label = Instance.new("TextLabel") label.Parent = frame label.Text = text label.Size = UDim2.new(0.8, 0, 1, 0) label.BackgroundTransparency = 1 label.Font = Enum.Font.Gotham label.TextColor3 = Color3.fromRGB(235, 235, 235) label.TextSize = 16 label.TextXAlignment = Enum.TextXAlignment.Left local toggleBtn = Instance.new("TextButton") toggleBtn.Parent = frame toggleBtn.Size = UDim2.new(0.2, 0, 1, 0) toggleBtn.Position = UDim2.new(0.8, 0, 0, 0) toggleBtn.BackgroundColor3 = Color3.fromRGB(60, 60, 60) toggleBtn.Text = "OFF" toggleBtn.Font = Enum.Font.GothamBold toggleBtn.TextColor3 = Color3.fromRGB(200, 200, 200) toggleBtn.TextSize = 14 toggleBtn.AutoButtonColor = false local uicorner = Instance.new("UICorner") uicorner.Parent = toggleBtn uicorner.CornerRadius = UDim.new(0, 6) local toggled = false toggleBtn.MouseButton1Click:Connect(function() toggled = not toggled if toggled then toggleBtn.Text = "ON" toggleBtn.BackgroundColor3 = NEON_COLOR else toggleBtn.Text = "OFF" toggleBtn.BackgroundColor3 = Color3.fromRGB(60, 60, 60) end print(text .. " toggled to " .. (toggled and "ON" or "OFF")) end) return frame, toggleBtn end -- Input-Feld erstellen local function createInput(labelText, defaultValue) local frame = Instance.new("Frame") frame.Parent = Main frame.Size = UDim2.new(1, -30, 0, 40) frame.BackgroundTransparency = 1 local label = Instance.new("TextLabel") label.Parent = frame label.Text = labelText label.Size = UDim2.new(0.55, 0, 1, 0) label.BackgroundTransparency = 1 label.Font = Enum.Font.Gotham label.TextColor3 = Color3.fromRGB(235, 235, 235) label.TextSize = 16 label.TextXAlignment = Enum.TextXAlignment.Left local textBox = Instance.new("TextBox") textBox.Parent = frame textBox.Size = UDim2.new(0.4, 0, 0.7, 0) textBox.Position = UDim2.new(0.57, 0, 0.15, 0) textBox.Text = tostring(defaultValue) textBox.Font = Enum.Font.Gotham textBox.TextSize = 16 textBox.TextColor3 = Color3.fromRGB(0,0,0) textBox.BackgroundColor3 = Color3.fromRGB(230,230,230) textBox.ClearTextOnFocus = false local uicorner = Instance.new("UICorner") uicorner.Parent = textBox uicorner.CornerRadius = UDim.new(0, 6) return frame, textBox end -- Beispiel Sektion "Interface" mit Buttons und Toggles createSection("Interface") local autoSaveFrame, autoSaveToggle = createToggle("Auto Save") local saveNowBtn = createButton("Save Now") saveNowBtn.MouseButton1Click:Connect(function() print("Save Now clicked!") end) local hideMobileFrame, hideMobileToggle = createToggle("Hide Mobile Buttons") local mobileSizeFrame, mobileSizeBox = createInput("Mobile Size (%)", 150) mobileSizeBox.FocusLost:Connect(function(enterPressed) local val = tonumber(mobileSizeBox.Text) if val and val >= 80 and val <= 200 then print("Mobile Size set to:", val) else mobileSizeBox.Text = "150" print("Invalid Mobile Size input, reset to 150") end end) makeDraggable(Main) return ScreenGuiend createGUI()