explore
key systems
new
docs
discord
search scripts
⌘K
explore
key systems
new
docs
discord
sign in
⌘↵
--
publishes from anywhere on this page
new paste
untitled.luau
empty
/ 512kb
open file
⌘O
explore
key systems
new
docs
sign in
emisifl2-copy.lua
865 lines · 29.4kb
/ 512kb
open file
⌘O
local Players = game:GetService("Players") local TweenService = game:GetService("TweenService") local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") local CoreGui = game:GetService("CoreGui") local LocalPlayer = Players.LocalPlayer local TargetParent = (typeof(gethui) == "function" and gethui()) or CoreGui or LocalPlayer:WaitForChild("PlayerGui") local OldGui = TargetParent:FindFirstChild("DiamondHubX") if OldGui then OldGui:Destroy() end local FontExtraBold = Font.new("rbxasset://fonts/families/GothamSSm.json", Enum.FontWeight.ExtraBold, Enum.FontStyle.Normal) local FontBold = Font.new("rbxasset://fonts/families/GothamSSm.json", Enum.FontWeight.Bold, Enum.FontStyle.Normal) local NeonHeaderGrad = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(22, 45, 24)), ColorSequenceKeypoint.new(0.45, Color3.fromRGB(45, 175, 50)), ColorSequenceKeypoint.new(0.65, Color3.fromRGB(58, 255, 55)), ColorSequenceKeypoint.new(1, Color3.fromRGB(16, 65, 18)) }) local NeonButtonGrad = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(160, 255, 160)), ColorSequenceKeypoint.new(0.08, Color3.fromRGB(58, 255, 55)), ColorSequenceKeypoint.new(1, Color3.fromRGB(18, 115, 12)) }) local DarkButtonGrad = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(75, 80, 88)), ColorSequenceKeypoint.new(0.08, Color3.fromRGB(45, 48, 55)), ColorSequenceKeypoint.new(1, Color3.fromRGB(22, 24, 28)) }) local RowPlateGrad = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(68, 74, 82)), ColorSequenceKeypoint.new(0.5, Color3.fromRGB(38, 42, 48)), ColorSequenceKeypoint.new(1, Color3.fromRGB(24, 26, 30)) }) local RowActiveGrad = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(42, 85, 45)), ColorSequenceKeypoint.new(0.5, Color3.fromRGB(24, 52, 26)), ColorSequenceKeypoint.new(1, Color3.fromRGB(14, 30, 16)) }) local TextShineGrad = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(0.48, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(0.52, Color3.fromRGB(215, 215, 215)), ColorSequenceKeypoint.new(1, Color3.fromRGB(235, 235, 235)) }) local State = { Active = false, Mode = "Teleport", Collected = 0, Cooldown = 0.15, WalkSpeed = 22 } local CurrentMode = "Teleport" local IsMenuOpen = false local OptionCards = {} local CollectedSet = {} local function Tween(obj, props, duration, style, dir) local t = TweenService:Create(obj, TweenInfo.new(duration or 0.18, style or Enum.EasingStyle.Quint, dir or Enum.EasingDirection.Out), props) t:Play() return t end local function AddStroke(parent, thickness, color, trans, mode) local stroke = Instance.new("UIStroke") stroke.Thickness = thickness or 1.8 stroke.Color = color or Color3.fromRGB(0, 0, 0) stroke.Transparency = trans or 0 stroke.ApplyStrokeMode = mode or Enum.ApplyStrokeMode.Border stroke.LineJoinMode = Enum.LineJoinMode.Round stroke.Parent = parent return stroke end local function StyleText(label, useShine) AddStroke(label, 1.6, Color3.fromRGB(0, 0, 0), 0, Enum.ApplyStrokeMode.Contextual) if useShine then local grad = Instance.new("UIGradient") grad.Color = TextShineGrad grad.Rotation = 90 grad.Parent = label end end local function AddScaleFeedback(btn, hoverScale, pressScale) local scale = Instance.new("UIScale") scale.Parent = btn local hovering = false btn.MouseEnter:Connect(function() hovering = true Tween(scale, {Scale = hoverScale or 1.035}, 0.1, Enum.EasingStyle.Quad) end) btn.MouseLeave:Connect(function() hovering = false Tween(scale, {Scale = 1}, 0.1, Enum.EasingStyle.Quad) end) btn.MouseButton1Down:Connect(function() Tween(scale, {Scale = pressScale or 0.95}, 0.055, Enum.EasingStyle.Quad) end) btn.MouseButton1Up:Connect(function() Tween(scale, {Scale = hovering and (hoverScale or 1.035) or 1}, 0.08, Enum.EasingStyle.Quad) end) return scale end local function GetCharacter() local char = LocalPlayer.Character if not char then return nil, nil, nil end return char, char:FindFirstChild("HumanoidRootPart"), char:FindFirstChildOfClass("Humanoid") end local function IsValidDiamond(giver) if not giver or giver.Name ~= "CoinGiver" then return false end if not giver.Parent or giver.Parent ~= workspace then return false end local diamond = giver:FindFirstChild("Diamond") if not diamond then return false end if diamond.Transparency >= 0.99 then return false end return true end local function CollectGivers() local list = {} for _, obj in ipairs(workspace:GetChildren()) do if obj.Name == "CoinGiver" and obj:IsA("BasePart") then if IsValidDiamond(obj) then table.insert(list, obj) end end end return list end local function TeleportTo(pos) local char, hrp = GetCharacter() if not char or not hrp then return false end hrp.CFrame = CFrame.new(pos + Vector3.new(0, 3.2, 0)) return true end local function TweenTo(pos) local char, hrp = GetCharacter() if not char or not hrp then return false end local target = CFrame.new(pos + Vector3.new(0, 3.2, 0)) local distance = (hrp.Position - target.Position).Magnitude local duration = math.clamp(distance / 250, 0.08, 0.25) local tw = TweenService:Create(hrp, TweenInfo.new(duration, Enum.EasingStyle.Linear), {CFrame = target}) tw:Play() tw.Completed:Wait() return true end local function NearestFirst(list, origin) table.sort(list, function(a, b) local da = (a.Position - origin).Magnitude local db = (b.Position - origin).Magnitude return da < db end) return list end local StatusLabelRef = nil local CountLabelRef = nil local ToggleBtnRef = nil local function UpdateUI() if CountLabelRef then CountLabelRef.Text = "Collected: " .. tostring(State.Collected) end if StatusLabelRef then if State.Active then StatusLabelRef.Text = "STATUS: ACTIVE" StatusLabelRef.TextColor3 = Color3.fromRGB(58, 255, 55) else StatusLabelRef.Text = "STATUS: IDLE" StatusLabelRef.TextColor3 = Color3.fromRGB(255, 215, 74) end end if ToggleBtnRef then ToggleBtnRef.Text = State.Active and "STOP AUTO" or "START AUTO" ToggleBtnRef.BackgroundColor3 = State.Active and Color3.fromRGB(180, 45, 45) or Color3.fromRGB(18, 115, 12) end end local function RunLoop() if State.Active then return end State.Active = true UpdateUI() task.spawn(function() while State.Active do local char, hrp, hum = GetCharacter() if not char or not hrp or not hum or hum.Health <= 0 then task.wait(0.5) else local list = CollectGivers() if #list == 0 then task.wait(0.6) else list = NearestFirst(list, hrp.Position) local target = list[1] if not target then task.wait(0.1) else local key = target:GetFullName() .. "_" .. string.format("%.1f_%.1f_%.1f", target.Position.X, target.Position.Y, target.Position.Z) if CollectedSet[key] then task.wait(0.05) else if State.Mode == "Teleport" then TeleportTo(target.Position) task.wait(State.Cooldown) else TweenTo(target.Position) task.wait(0.05) end CollectedSet[key] = true State.Collected = State.Collected + 1 UpdateUI() task.wait(0.05) end end end end task.wait(0.02) end end) end local function StopLoop() State.Active = false UpdateUI() local _, hrp, hum = GetCharacter() if hrp and hum then hum:MoveTo(hrp.Position) end end local Screen = Instance.new("ScreenGui") Screen.Name = "DiamondHubX" Screen.ResetOnSpawn = false Screen.IgnoreGuiInset = true Screen.DisplayOrder = 999 Screen.ZIndexBehavior = Enum.ZIndexBehavior.Sibling Screen.Parent = TargetParent local MainWrapper = Instance.new("Frame") MainWrapper.Name = "Wrapper" MainWrapper.AnchorPoint = Vector2.new(1, 0) MainWrapper.Position = UDim2.new(0.98, 0, 0.15, 0) MainWrapper.Size = UDim2.fromOffset(270, 268) MainWrapper.BackgroundTransparency = 1 MainWrapper.Visible = false MainWrapper.Parent = Screen local MainFrame = Instance.new("Frame") MainFrame.Name = "MainFrame" MainFrame.Size = UDim2.fromScale(1, 1) MainFrame.BackgroundColor3 = Color3.fromRGB(8, 10, 10) MainFrame.BackgroundTransparency = 0.28 MainFrame.BorderSizePixel = 0 MainFrame.ClipsDescendants = true MainFrame.ZIndex = 2 MainFrame.Parent = MainWrapper AddStroke(MainFrame, 2.2, Color3.fromRGB(0, 0, 0), 0) local GridTexture = Instance.new("ImageLabel") GridTexture.Name = "GridTexture" GridTexture.Size = UDim2.fromScale(1, 1) GridTexture.BackgroundTransparency = 1 GridTexture.Image = "rbxassetid://6372755229" GridTexture.ImageColor3 = Color3.fromRGB(58, 255, 55) GridTexture.ImageTransparency = 0.93 GridTexture.ScaleType = Enum.ScaleType.Tile GridTexture.TileSize = UDim2.fromOffset(24, 24) GridTexture.ZIndex = 2 GridTexture.Parent = MainFrame local TopBar = Instance.new("Frame") TopBar.Name = "Top" TopBar.Size = UDim2.new(1, 0, 0, 36) TopBar.BackgroundColor3 = Color3.fromRGB(8, 38, 10) TopBar.BorderSizePixel = 0 TopBar.Active = true TopBar.ZIndex = 5 TopBar.Parent = MainFrame AddStroke(TopBar, 1.8, Color3.fromRGB(0, 0, 0), 0) local TopColor = Instance.new("Frame") TopColor.Name = "Color" TopColor.AnchorPoint = Vector2.new(0.5, 0) TopColor.Position = UDim2.fromScale(0.5, 0) TopColor.Size = UDim2.fromScale(1, 0.88) TopColor.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TopColor.BorderSizePixel = 0 TopColor.ZIndex = 6 TopColor.Parent = TopBar local TopGrad = Instance.new("UIGradient") TopGrad.Color = NeonHeaderGrad TopGrad.Rotation = 25 TopGrad.Parent = TopColor local TopTrans = Instance.new("Frame") TopTrans.Name = "Transparent" TopTrans.AnchorPoint = Vector2.new(0.5, 0.5) TopTrans.Position = UDim2.fromScale(0.5, 0.5) TopTrans.Size = UDim2.fromScale(0.985, 0.84) TopTrans.BackgroundColor3 = Color3.fromRGB(0, 0, 0) TopTrans.BackgroundTransparency = 0.88 TopTrans.BorderSizePixel = 0 TopTrans.ZIndex = 7 TopTrans.Parent = TopColor local HeaderTitle = Instance.new("TextLabel") HeaderTitle.Name = "Title" HeaderTitle.AnchorPoint = Vector2.new(0, 0.5) HeaderTitle.Position = UDim2.new(0, 10, 0.5, 0) HeaderTitle.Size = UDim2.new(0.55, 0, 0, 20) HeaderTitle.BackgroundTransparency = 1 HeaderTitle.FontFace = FontExtraBold HeaderTitle.Text = "Diamond Hub X" HeaderTitle.TextColor3 = Color3.fromRGB(255, 255, 255) HeaderTitle.TextSize = 15 HeaderTitle.TextXAlignment = Enum.TextXAlignment.Left HeaderTitle.ZIndex = 8 HeaderTitle.Parent = TopColor StyleText(HeaderTitle, true) local StatusBox = Instance.new("Frame") StatusBox.Name = "StatusBox" StatusBox.AnchorPoint = Vector2.new(1, 0.5) StatusBox.Position = UDim2.new(1, -8, 0.5, 0) StatusBox.Size = UDim2.fromOffset(86, 22) StatusBox.BackgroundColor3 = Color3.fromRGB(18, 22, 20) StatusBox.BorderSizePixel = 0 StatusBox.ZIndex = 8 StatusBox.Parent = TopColor AddStroke(StatusBox, 1.6, Color3.fromRGB(0, 0, 0), 0) local StatusFill = Instance.new("Frame") StatusFill.AnchorPoint = Vector2.new(0.5, 0) StatusFill.Position = UDim2.fromScale(0.5, 0) StatusFill.Size = UDim2.fromScale(1, 0.9) StatusFill.BackgroundColor3 = Color3.fromRGB(255, 255, 255) StatusFill.BorderSizePixel = 0 StatusFill.ZIndex = 9 StatusFill.Parent = StatusBox local StatusFillGrad = Instance.new("UIGradient") StatusFillGrad.Color = DarkButtonGrad StatusFillGrad.Rotation = 90 StatusFillGrad.Parent = StatusFill local StatusLabel = Instance.new("TextLabel") StatusLabel.Size = UDim2.fromScale(1, 1) StatusLabel.BackgroundTransparency = 1 StatusLabel.FontFace = FontExtraBold StatusLabel.Text = "STATUS: IDLE" StatusLabel.TextColor3 = Color3.fromRGB(255, 215, 74) StatusLabel.TextSize = 10 StatusLabel.ZIndex = 10 StatusLabel.Parent = StatusFill StyleText(StatusLabel, false) StatusLabelRef = StatusLabel local SubBanner = Instance.new("TextLabel") SubBanner.Name = "SubBanner" SubBanner.Position = UDim2.new(0, 8, 0, 40) SubBanner.Size = UDim2.new(1, -16, 0, 14) SubBanner.BackgroundTransparency = 1 SubBanner.FontFace = FontBold SubBanner.Text = "Auto Diamond | Teleport & Tween Mode" SubBanner.TextColor3 = Color3.fromRGB(200, 215, 200) SubBanner.TextSize = 10 SubBanner.ZIndex = 4 SubBanner.Parent = MainFrame StyleText(SubBanner, false) local CountLabel = Instance.new("TextLabel") CountLabel.Position = UDim2.new(0, 8, 0, 56) CountLabel.Size = UDim2.new(1, -16, 0, 16) CountLabel.BackgroundTransparency = 1 CountLabel.FontFace = FontBold CountLabel.Text = "Collected: 0" CountLabel.TextColor3 = Color3.fromRGB(58, 255, 55) CountLabel.TextSize = 11 CountLabel.TextXAlignment = Enum.TextXAlignment.Left CountLabel.ZIndex = 4 CountLabel.Parent = MainFrame StyleText(CountLabel, false) CountLabelRef = CountLabel local RowsHolder = Instance.new("Frame") RowsHolder.Name = "RowsHolder" RowsHolder.Position = UDim2.new(0, 8, 0, 76) RowsHolder.Size = UDim2.new(1, -16, 0, 92) RowsHolder.BackgroundTransparency = 1 RowsHolder.ZIndex = 4 RowsHolder.Parent = MainFrame local RowsLayout = Instance.new("UIListLayout") RowsLayout.SortOrder = Enum.SortOrder.LayoutOrder RowsLayout.Padding = UDim.new(0, 6) RowsLayout.Parent = RowsHolder local ToggleBtn = Instance.new("TextButton") ToggleBtn.Name = "ToggleBtn" ToggleBtn.AnchorPoint = Vector2.new(0.5, 0) ToggleBtn.Position = UDim2.new(0.5, 0, 0, 174) ToggleBtn.Size = UDim2.new(1, -16, 0, 30) ToggleBtn.BackgroundColor3 = Color3.fromRGB(18, 115, 12) ToggleBtn.BorderSizePixel = 0 ToggleBtn.AutoButtonColor = false ToggleBtn.Text = "START AUTO" ToggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255) ToggleBtn.FontFace = FontExtraBold ToggleBtn.TextSize = 12 ToggleBtn.ZIndex = 8 ToggleBtn.Parent = MainFrame StyleText(ToggleBtn, true) AddStroke(ToggleBtn, 1.8, Color3.fromRGB(0, 0, 0), 0) AddScaleFeedback(ToggleBtn, 1.03, 0.96) ToggleBtnRef = ToggleBtn local SpeedRow = Instance.new("Frame") SpeedRow.Name = "SpeedRow" SpeedRow.Position = UDim2.new(0, 8, 0, 210) SpeedRow.Size = UDim2.new(1, -16, 0, 22) SpeedRow.BackgroundColor3 = Color3.fromRGB(14, 16, 15) SpeedRow.BackgroundTransparency = 0.2 SpeedRow.BorderSizePixel = 0 SpeedRow.ZIndex = 4 SpeedRow.Parent = MainFrame AddStroke(SpeedRow, 1.4, Color3.fromRGB(0, 0, 0), 0) local SpeedLabel = Instance.new("TextLabel") SpeedLabel.Position = UDim2.new(0, 6, 0, 0) SpeedLabel.Size = UDim2.new(0.55, 0, 1, 0) SpeedLabel.BackgroundTransparency = 1 SpeedLabel.FontFace = FontBold SpeedLabel.Text = "WalkSpeed: 22" SpeedLabel.TextColor3 = Color3.fromRGB(200, 215, 200) SpeedLabel.TextSize = 10 SpeedLabel.TextXAlignment = Enum.TextXAlignment.Left SpeedLabel.ZIndex = 5 SpeedLabel.Parent = SpeedRow StyleText(SpeedLabel, false) local SpeedDec = Instance.new("TextButton") SpeedDec.AnchorPoint = Vector2.new(1, 0.5) SpeedDec.Position = UDim2.new(1, -32, 0.5, 0) SpeedDec.Size = UDim2.fromOffset(24, 18) SpeedDec.BackgroundColor3 = Color3.fromRGB(45, 48, 55) SpeedDec.BorderSizePixel = 0 SpeedDec.AutoButtonColor = false SpeedDec.Text = "-" SpeedDec.TextColor3 = Color3.fromRGB(255, 255, 255) SpeedDec.FontFace = FontExtraBold SpeedDec.TextSize = 12 SpeedDec.ZIndex = 6 SpeedDec.Parent = SpeedRow AddStroke(SpeedDec, 1.2, Color3.fromRGB(0, 0, 0), 0) local SpeedInc = Instance.new("TextButton") SpeedInc.AnchorPoint = Vector2.new(1, 0.5) SpeedInc.Position = UDim2.new(1, -4, 0.5, 0) SpeedInc.Size = UDim2.fromOffset(24, 18) SpeedInc.BackgroundColor3 = Color3.fromRGB(45, 48, 55) SpeedInc.BorderSizePixel = 0 SpeedInc.AutoButtonColor = false SpeedInc.Text = "+" SpeedInc.TextColor3 = Color3.fromRGB(255, 255, 255) SpeedInc.FontFace = FontExtraBold SpeedInc.TextSize = 12 SpeedInc.ZIndex = 6 SpeedInc.Parent = SpeedRow AddStroke(SpeedInc, 1.2, Color3.fromRGB(0, 0, 0), 0) local FooterBar = Instance.new("Frame") FooterBar.Name = "Footer" FooterBar.AnchorPoint = Vector2.new(0.5, 1) FooterBar.Position = UDim2.new(0.5, 0, 1, -6) FooterBar.Size = UDim2.new(1, -16, 0, 18) FooterBar.BackgroundColor3 = Color3.fromRGB(14, 16, 15) FooterBar.BackgroundTransparency = 0.2 FooterBar.BorderSizePixel = 0 FooterBar.ZIndex = 4 FooterBar.Parent = MainFrame AddStroke(FooterBar, 1.4, Color3.fromRGB(0, 0, 0), 0) local FooterText = Instance.new("TextLabel") FooterText.Position = UDim2.new(0, 6, 0, 0) FooterText.Size = UDim2.new(1, -12, 1, 0) FooterText.BackgroundTransparency = 1 FooterText.FontFace = FontBold FooterText.Text = "Hotkeys: [Z] Toggle | [X] Mode" FooterText.TextColor3 = Color3.fromRGB(130, 240, 130) FooterText.TextSize = 9 FooterText.TextXAlignment = Enum.TextXAlignment.Center FooterText.ZIndex = 5 FooterText.Parent = FooterBar StyleText(FooterText, false) local FloatingToggleBtn = Instance.new("TextButton") FloatingToggleBtn.Name = "FloatingDiamondBtn" FloatingToggleBtn.AnchorPoint = Vector2.new(0, 0.5) FloatingToggleBtn.Position = UDim2.new(0, 16, 0.35, 0) FloatingToggleBtn.Size = UDim2.fromOffset(95, 36) FloatingToggleBtn.BackgroundColor3 = Color3.fromRGB(8, 38, 10) FloatingToggleBtn.BorderSizePixel = 0 FloatingToggleBtn.AutoButtonColor = false FloatingToggleBtn.Text = "" FloatingToggleBtn.ZIndex = 50 FloatingToggleBtn.Active = true FloatingToggleBtn.Parent = Screen AddStroke(FloatingToggleBtn, 2, Color3.fromRGB(0, 0, 0), 0) AddScaleFeedback(FloatingToggleBtn, 1.05, 0.95) local FloatColor = Instance.new("Frame") FloatColor.AnchorPoint = Vector2.new(0.5, 0) FloatColor.Position = UDim2.fromScale(0.5, 0) FloatColor.Size = UDim2.fromScale(1, 0.88) FloatColor.BackgroundColor3 = Color3.fromRGB(255, 255, 255) FloatColor.BorderSizePixel = 0 FloatColor.ZIndex = 51 FloatColor.Parent = FloatingToggleBtn local FloatGrad = Instance.new("UIGradient") FloatGrad.Color = NeonHeaderGrad FloatGrad.Rotation = 25 FloatGrad.Parent = FloatColor local FloatTrans = Instance.new("Frame") FloatTrans.AnchorPoint = Vector2.new(0.5, 0.5) FloatTrans.Position = UDim2.fromScale(0.5, 0.5) FloatTrans.Size = UDim2.fromScale(0.985, 0.84) FloatTrans.BackgroundColor3 = Color3.fromRGB(0, 0, 0) FloatTrans.BackgroundTransparency = 0.88 FloatTrans.BorderSizePixel = 0 FloatTrans.ZIndex = 52 FloatTrans.Parent = FloatColor local FloatText = Instance.new("TextLabel") FloatText.AnchorPoint = Vector2.new(0.5, 0.5) FloatText.Position = UDim2.fromScale(0.5, 0.5) FloatText.Size = UDim2.new(1, -10, 0, 18) FloatText.BackgroundTransparency = 1 FloatText.FontFace = FontExtraBold FloatText.Text = "Diamond" FloatText.TextColor3 = Color3.fromRGB(255, 255, 255) FloatText.TextSize = 13 FloatText.TextXAlignment = Enum.TextXAlignment.Center FloatText.ZIndex = 53 FloatText.Parent = FloatColor StyleText(FloatText, true) local function SelectMode(mode) CurrentMode = mode State.Mode = mode for name, card in pairs(OptionCards) do local isSelected = (name == mode) card.RowGrad.Color = isSelected and RowActiveGrad or RowPlateGrad card.RowStroke.Color = isSelected and Color3.fromRGB(58, 255, 55) or Color3.fromRGB(0, 0, 0) card.ActionBase.BackgroundColor3 = isSelected and Color3.fromRGB(12, 85, 12) or Color3.fromRGB(18, 20, 24) card.ActionGrad.Color = isSelected and NeonButtonGrad or DarkButtonGrad card.ActionLabel.Text = isSelected and "ACTIVE" or "Select" card.ActionLabel.TextColor3 = isSelected and Color3.fromRGB(255, 255, 255) or Color3.fromRGB(185, 190, 200) card.SubLabel.RichText = true if isSelected then card.SubLabel.Text = '<font color="#3AFF37">LOCKED</font> <font color="#FFD84A">[' .. card.Key .. ']</font> Ready' else card.SubLabel.Text = '<font color="#9AA3B5">STANDBY</font> <font color="#FFD84A">[' .. card.Key .. ']</font> Press to lock' end end end local function CreateModeRow(order, modeName, iconText, keyBind, desc) local RowFrame = Instance.new("Frame") RowFrame.Name = modeName .. "Row" RowFrame.LayoutOrder = order RowFrame.Size = UDim2.new(1, 0, 0, 42) RowFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255) RowFrame.BackgroundTransparency = 0.08 RowFrame.BorderSizePixel = 0 RowFrame.ZIndex = 5 RowFrame.Parent = RowsHolder local RowStroke = AddStroke(RowFrame, 1.6, Color3.fromRGB(0, 0, 0), 0) local RowGrad = Instance.new("UIGradient") RowGrad.Color = RowPlateGrad RowGrad.Rotation = 90 RowGrad.Parent = RowFrame local InnerBevel = Instance.new("Frame") InnerBevel.AnchorPoint = Vector2.new(0.5, 0.5) InnerBevel.Position = UDim2.fromScale(0.5, 0.5) InnerBevel.Size = UDim2.new(1, -4, 1, -4) InnerBevel.BackgroundColor3 = Color3.fromRGB(0, 0, 0) InnerBevel.BackgroundTransparency = 0.72 InnerBevel.BorderSizePixel = 0 InnerBevel.ZIndex = 5 InnerBevel.Parent = RowFrame local IconBox = Instance.new("Frame") IconBox.AnchorPoint = Vector2.new(0, 0.5) IconBox.Position = UDim2.new(0, 6, 0.5, 0) IconBox.Size = UDim2.fromOffset(30, 30) IconBox.BackgroundColor3 = Color3.fromRGB(12, 16, 14) IconBox.BorderSizePixel = 0 IconBox.ZIndex = 6 IconBox.Parent = RowFrame AddStroke(IconBox, 1.4, Color3.fromRGB(40, 95, 42), 0) local IconLabel = Instance.new("TextLabel") IconLabel.Size = UDim2.fromScale(1, 1) IconLabel.BackgroundTransparency = 1 IconLabel.FontFace = FontExtraBold IconLabel.Text = iconText IconLabel.TextColor3 = Color3.fromRGB(58, 255, 55) IconLabel.TextSize = 12 IconLabel.ZIndex = 7 IconLabel.Parent = IconBox StyleText(IconLabel, false) local TitleLabel = Instance.new("TextLabel") TitleLabel.Position = UDim2.new(0, 42, 0, 4) TitleLabel.Size = UDim2.new(1, -112, 0, 18) TitleLabel.BackgroundTransparency = 1 TitleLabel.FontFace = FontExtraBold TitleLabel.Text = modeName TitleLabel.TextColor3 = Color3.fromRGB(255, 255, 255) TitleLabel.TextSize = 13 TitleLabel.TextXAlignment = Enum.TextXAlignment.Left TitleLabel.ZIndex = 7 TitleLabel.Parent = RowFrame StyleText(TitleLabel, true) local SubLabel = Instance.new("TextLabel") SubLabel.Position = UDim2.new(0, 42, 0, 22) SubLabel.Size = UDim2.new(1, -112, 0, 14) SubLabel.BackgroundTransparency = 1 SubLabel.FontFace = FontBold SubLabel.RichText = true SubLabel.Text = desc or "" SubLabel.TextColor3 = Color3.fromRGB(200, 200, 200) SubLabel.TextSize = 10 SubLabel.TextXAlignment = Enum.TextXAlignment.Left SubLabel.ZIndex = 7 SubLabel.Parent = RowFrame StyleText(SubLabel, false) local ActionBtn = Instance.new("TextButton") ActionBtn.Name = "ModeBtn" ActionBtn.AnchorPoint = Vector2.new(1, 0.5) ActionBtn.Position = UDim2.new(1, -6, 0.5, 0) ActionBtn.Size = UDim2.fromOffset(58, 28) ActionBtn.BackgroundTransparency = 1 ActionBtn.AutoButtonColor = false ActionBtn.Text = "" ActionBtn.ZIndex = 8 ActionBtn.Parent = RowFrame local ScaleObj = AddScaleFeedback(ActionBtn, 1.04, 0.95) local ActionBase = Instance.new("Frame") ActionBase.AnchorPoint = Vector2.new(0.5, 0.5) ActionBase.Position = UDim2.fromScale(0.5, 0.5) ActionBase.Size = UDim2.fromScale(1, 0.94) ActionBase.BackgroundColor3 = Color3.fromRGB(12, 85, 12) ActionBase.BorderSizePixel = 0 ActionBase.ZIndex = 8 ActionBase.Parent = ActionBtn AddStroke(ActionBase, 1.6, Color3.fromRGB(0, 0, 0), 0) local ActionColor = Instance.new("Frame") ActionColor.AnchorPoint = Vector2.new(0.5, 0) ActionColor.Position = UDim2.fromScale(0.5, 0) ActionColor.Size = UDim2.fromScale(1, 0.9) ActionColor.BackgroundColor3 = Color3.fromRGB(255, 255, 255) ActionColor.BorderSizePixel = 0 ActionColor.ZIndex = 9 ActionColor.Parent = ActionBase local ActionGrad = Instance.new("UIGradient") ActionGrad.Color = NeonButtonGrad ActionGrad.Rotation = 90 ActionGrad.Parent = ActionColor local ActionInner = Instance.new("Frame") ActionInner.AnchorPoint = Vector2.new(0.5, 0.5) ActionInner.Position = UDim2.fromScale(0.5, 0.5) ActionInner.Size = UDim2.fromScale(0.95, 0.84) ActionInner.BackgroundColor3 = Color3.fromRGB(0, 0, 0) ActionInner.BackgroundTransparency = 0.86 ActionInner.BorderSizePixel = 0 ActionInner.ZIndex = 10 ActionInner.Parent = ActionColor local ActionLabel = Instance.new("TextLabel") ActionLabel.AnchorPoint = Vector2.new(0.5, 0.5) ActionLabel.Position = UDim2.fromScale(0.5, 0.5) ActionLabel.Size = UDim2.fromScale(0.92, 0.78) ActionLabel.BackgroundTransparency = 1 ActionLabel.FontFace = FontExtraBold ActionLabel.Text = "ACTIVE" ActionLabel.TextColor3 = Color3.fromRGB(255, 255, 255) ActionLabel.TextSize = 11 ActionLabel.ZIndex = 11 ActionLabel.Parent = ActionColor StyleText(ActionLabel, true) ActionBtn.Activated:Connect(function() SelectMode(modeName) end) OptionCards[modeName] = { RowFrame = RowFrame, RowGrad = RowGrad, RowStroke = RowStroke, SubLabel = SubLabel, ActionBase = ActionBase, ActionGrad = ActionGrad, ActionLabel = ActionLabel, Scale = ScaleObj, Key = keyBind } end CreateModeRow(1, "Teleport", "TP", "T", "Instant teleport | Fast") CreateModeRow(2, "Tween", "TW", "Y", "Smooth tween | Safer") SelectMode("Teleport") ToggleBtn.MouseButton1Click:Connect(function() if State.Active then StopLoop() else RunLoop() end end) SpeedDec.MouseButton1Click:Connect(function() State.WalkSpeed = math.max(16, State.WalkSpeed - 2) SpeedLabel.Text = "WalkSpeed: " .. tostring(State.WalkSpeed) local _, _, hum = GetCharacter() if hum then hum.WalkSpeed = State.WalkSpeed end end) SpeedInc.MouseButton1Click:Connect(function() State.WalkSpeed = math.min(300, State.WalkSpeed + 4) SpeedLabel.Text = "WalkSpeed: " .. tostring(State.WalkSpeed) local _, _, hum = GetCharacter() if hum then hum.WalkSpeed = State.WalkSpeed end end) local isDraggingToggle = false local toggleDragStart = nil local toggleStartPos = nil FloatingToggleBtn.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then toggleDragStart = input.Position toggleStartPos = FloatingToggleBtn.Position local moved = false local moveConn local endConn moveConn = input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.Change then local delta = input.Position - toggleDragStart if delta.Magnitude > 5 then moved = true isDraggingToggle = true FloatingToggleBtn.Position = UDim2.new( toggleStartPos.X.Scale, toggleStartPos.X.Offset + delta.X, toggleStartPos.Y.Scale, toggleStartPos.Y.Offset + delta.Y ) end end end) endConn = input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then if not moved then IsMenuOpen = not IsMenuOpen MainWrapper.Visible = IsMenuOpen if IsMenuOpen then MainWrapper.Size = UDim2.fromOffset(0, 0) Tween(MainWrapper, {Size = UDim2.fromOffset(270, 268)}, 0.22, Enum.EasingStyle.Back, Enum.EasingDirection.Out) end end isDraggingToggle = false if moveConn then moveConn:Disconnect() end if endConn then endConn:Disconnect() end end end) end end) UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed or UserInputService:GetFocusedTextBox() then return end if input.KeyCode == Enum.KeyCode.Z then if State.Active then StopLoop() else RunLoop() end elseif input.KeyCode == Enum.KeyCode.X then if CurrentMode == "Teleport" then SelectMode("Tween") else SelectMode("Teleport") end elseif input.KeyCode == Enum.KeyCode.T then SelectMode("Teleport") local card = OptionCards["Teleport"] if card and card.Scale then Tween(card.Scale, {Scale = 0.92}, 0.05) task.delay(0.06, function() Tween(card.Scale, {Scale = 1}, 0.1) end) end elseif input.KeyCode == Enum.KeyCode.Y then SelectMode("Tween") local card = OptionCards["Tween"] if card and card.Scale then Tween(card.Scale, {Scale = 0.92}, 0.05) task.delay(0.06, function() Tween(card.Scale, {Scale = 1}, 0.1) end) end end end) LocalPlayer.CharacterAdded:Connect(function(character) task.wait(0.4) local hum = character:FindFirstChildOfClass("Humanoid") if hum then hum.WalkSpeed = State.WalkSpeed end CollectedSet = {} State.Collected = 0 UpdateUI() end) UpdateUI()