-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] local Players = game:GetService("Players") local TweenService = game:GetService("TweenService") local UserInputService = game:GetService("UserInputService") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") --================================================== -- SETTINGS --================================================== local NORMAL_SPEED = 16 local BOOST_SPEED = 32 local NORMAL_JUMP = 50 local BOOST_JUMP = 90 --================================================== -- GUI --================================================== local gui = Instance.new("ScreenGui") gui.Name = "PrisonControl" gui.ResetOnSpawn = false gui.IgnoreGuiInset = true gui.Parent = playerGui -- Open button local openButton = Instance.new("TextButton") openButton.Name = "OpenButton" openButton.Parent = gui openButton.Size = UDim2.new(0, 145, 0, 52) openButton.Position = UDim2.new(0, 15, 0.5, -26) openButton.BackgroundColor3 = Color3.fromRGB(28, 31, 38) openButton.TextColor3 = Color3.fromRGB(255, 255, 255) openButton.Text = "☰ MENU" openButton.TextSize = 18 openButton.Font = Enum.Font.GothamBold openButton.AutoButtonColor = true local openCorner = Instance.new("UICorner") openCorner.CornerRadius = UDim.new(0, 12) openCorner.Parent = openButton local openStroke = Instance.new("UIStroke") openStroke.Color = Color3.fromRGB(70, 75, 90) openStroke.Thickness = 1 openStroke.Parent = openButton -- Main window local window = Instance.new("Frame") window.Name = "MainWindow" window.Parent = gui window.AnchorPoint = Vector2.new(0.5, 0.5) window.Position = UDim2.new(0.5, 0, 0.5, 0) window.Size = UDim2.new(0.82, 0, 0.78, 0) window.BackgroundColor3 = Color3.fromRGB(20, 22, 28) window.Visible = false window.ClipsDescendants = true local windowCorner = Instance.new("UICorner") windowCorner.CornerRadius = UDim.new(0, 16) windowCorner.Parent = window local windowStroke = Instance.new("UIStroke") windowStroke.Color = Color3.fromRGB(65, 70, 82) windowStroke.Thickness = 1 windowStroke.Parent = window -- Limit size on larger screens local sizeConstraint = Instance.new("UISizeConstraint") sizeConstraint.MinSize = Vector2.new(290, 380) sizeConstraint.MaxSize = Vector2.new(430, 650) sizeConstraint.Parent = window --================================================== -- HEADER --================================================== local header = Instance.new("Frame") header.Parent = window header.Size = UDim2.new(1, 0, 0, 65) header.BackgroundColor3 = Color3.fromRGB(27, 30, 38) local headerCorner = Instance.new("UICorner") headerCorner.CornerRadius = UDim.new(0, 16) headerCorner.Parent = header local title = Instance.new("TextLabel") title.Parent = header title.BackgroundTransparency = 1 title.Position = UDim2.new(0, 18, 0, 8) title.Size = UDim2.new(1, -75, 0, 28) title.Text = "PRISON CONTROL" title.TextColor3 = Color3.fromRGB(255, 255, 255) title.TextSize = 20 title.Font = Enum.Font.GothamBold title.TextXAlignment = Enum.TextXAlignment.Left local subtitle = Instance.new("TextLabel") subtitle.Parent = header subtitle.BackgroundTransparency = 1 subtitle.Position = UDim2.new(0, 19, 0, 35) subtitle.Size = UDim2.new(1, -80, 0, 20) subtitle.Text = "Personal game control panel" subtitle.TextColor3 = Color3.fromRGB(150, 155, 170) subtitle.TextSize = 12 subtitle.Font = Enum.Font.Gotham subtitle.TextXAlignment = Enum.TextXAlignment.Left local closeButton = Instance.new("TextButton") closeButton.Parent = header closeButton.Size = UDim2.new(0, 42, 0, 42) closeButton.Position = UDim2.new(1, -52, 0, 11) closeButton.BackgroundColor3 = Color3.fromRGB(45, 48, 58) closeButton.Text = "×" closeButton.TextColor3 = Color3.fromRGB(255, 255, 255) closeButton.TextSize = 27 closeButton.Font = Enum.Font.GothamBold local closeCorner = Instance.new("UICorner") closeCorner.CornerRadius = UDim.new(0, 10) closeCorner.Parent = closeButton --================================================== -- SCROLLING CONTENT --================================================== local scroll = Instance.new("ScrollingFrame") scroll.Parent = window scroll.Position = UDim2.new(0, 0, 0, 65) scroll.Size = UDim2.new(1, 0, 1, -65) scroll.BackgroundTransparency = 1 scroll.BorderSizePixel = 0 scroll.ScrollBarThickness = 5 scroll.ScrollBarImageTransparency = 0.25 scroll.CanvasSize = UDim2.new(0, 0, 0, 0) scroll.AutomaticCanvasSize = Enum.AutomaticSize.Y local padding = Instance.new("UIPadding") padding.Parent = scroll padding.PaddingTop = UDim.new(0, 15) padding.PaddingBottom = UDim.new(0, 20) padding.PaddingLeft = UDim.new(0, 15) padding.PaddingRight = UDim.new(0, 15) local layout = Instance.new("UIListLayout") layout.Parent = scroll layout.Padding = UDim.new(0, 10) layout.HorizontalAlignment = Enum.HorizontalAlignment.Center layout.SortOrder = Enum.SortOrder.LayoutOrder --================================================== -- NOTIFICATION --================================================== local notification = Instance.new("TextLabel") notification.Parent = gui notification.AnchorPoint = Vector2.new(0.5, 1) notification.Position = UDim2.new(0.5, 0, 1, -20) notification.Size = UDim2.new(0.8, 0, 0, 45) notification.BackgroundColor3 = Color3.fromRGB(27, 30, 38) notification.TextColor3 = Color3.fromRGB(255, 255, 255) notification.TextSize = 14 notification.Font = Enum.Font.GothamMedium notification.Visible = false notification.TextWrapped = true local notificationCorner = Instance.new("UICorner") notificationCorner.CornerRadius = UDim.new(0, 10) notificationCorner.Parent = notification local notificationStroke = Instance.new("UIStroke") notificationStroke.Color = Color3.fromRGB(70, 75, 90) notificationStroke.Parent = notification local notificationId = 0 local function notify(text) notificationId += 1 local thisId = notificationId notification.Text = text notification.Visible = true task.delay(2.5, function() if thisId == notificationId then notification.Visible = false end end) end --================================================== -- SECTION LABEL --================================================== local function section(text) local label = Instance.new("TextLabel") label.Parent = scroll label.Size = UDim2.new(1, 0, 0, 30) label.BackgroundTransparency = 1 label.Text = text label.TextColor3 = Color3.fromRGB(160, 165, 180) label.TextSize = 13 label.Font = Enum.Font.GothamBold label.TextXAlignment = Enum.TextXAlignment.Left return label end --================================================== -- BUTTON CREATOR --================================================== local function makeButton(text, callback) local button = Instance.new("TextButton") button.Parent = scroll button.Size = UDim2.new(1, 0, 0, 52) button.BackgroundColor3 = Color3.fromRGB(38, 41, 50) button.TextColor3 = Color3.fromRGB(245, 245, 245) button.Text = text button.TextSize = 15 button.Font = Enum.Font.GothamSemibold button.AutoButtonColor = false local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 11) corner.Parent = button local stroke = Instance.new("UIStroke") stroke.Color = Color3.fromRGB(60, 64, 76) stroke.Thickness = 1 stroke.Parent = button button.MouseEnter:Connect(function() TweenService:Create( button, TweenInfo.new(0.12), {BackgroundColor3 = Color3.fromRGB(48, 52, 63)} ):Play() end) button.MouseLeave:Connect(function() TweenService:Create( button, TweenInfo.new(0.12), {BackgroundColor3 = Color3.fromRGB(38, 41, 50)} ):Play() end) button.Activated:Connect(function() callback(button) end) return button end --================================================== -- CHARACTER / HUMANOID --================================================== local function getHumanoid() local character = player.Character if not character then return nil end return character:FindFirstChildOfClass("Humanoid") end --================================================== -- TELEPORT --================================================== local function teleportTo(name) local location = workspace:FindFirstChild(name) if not location then notify("Location '" .. name .. "' was not found.") return end local character = player.Character if not character then notify("Character is not ready.") return end if not location:IsA("BasePart") then notify(name .. " must be a Part.") return end character:PivotTo(location.CFrame + Vector3.new(0, 4, 0)) notify("Teleported to " .. name) end --================================================== -- LOCATIONS --================================================== section("LOCATIONS") makeButton("📍 Yard", function() teleportTo("Yard") end) makeButton("🔒 Cell", function() teleportTo("Cell") end) makeButton("🍽 Cafeteria", function() teleportTo("Cafeteria") end) makeButton("💀 Criminal Base", function() teleportTo("CriminalBase") end) --================================================== -- MOVEMENT --================================================== section("MOVEMENT") local speedEnabled = false local speedButton = makeButton("⚡ Speed Boost • OFF", function(button) local humanoid = getHumanoid() if not humanoid then notify("Character is not ready.") return end speedEnabled = not speedEnabled if speedEnabled then humanoid.WalkSpeed = BOOST_SPEED button.Text = "⚡ Speed Boost • ON" notify("Speed boost enabled") else humanoid.WalkSpeed = NORMAL_SPEED button.Text = "⚡ Speed Boost • OFF" notify("Speed boost disabled") end end) local jumpEnabled = false local jumpButton = makeButton("🦘 Jump Boost • OFF", function(button) local humanoid = getHumanoid() if not humanoid then notify("Character is not ready.") return end jumpEnabled = not jumpEnabled if jumpEnabled then humanoid.UseJumpPower = true humanoid.JumpPower = BOOST_JUMP button.Text = "🦘 Jump Boost • ON" notify("Jump boost enabled") else humanoid.UseJumpPower = true humanoid.JumpPower = NORMAL_JUMP button.Text = "🦘 Jump Boost • OFF" notify("Jump boost disabled") end end) makeButton("↩ Reset Movement", function() local humanoid = getHumanoid() if humanoid then speedEnabled = false jumpEnabled = false humanoid.WalkSpeed = NORMAL_SPEED humanoid.UseJumpPower = true humanoid.JumpPower = NORMAL_JUMP speedButton.Text = "⚡ Speed Boost • OFF" jumpButton.Text = "🦘 Jump Boost • OFF" notify("Movement reset") end end) --================================================== -- TEAMS --================================================== section("TEAMS") local function changeTeam(teamName) local teams = game:GetService("Teams") local team = teams:FindFirstChild(teamName) if not team then notify("Team '" .. teamName .. "' was not found.") return end player.Team = team player:LoadCharacter() notify("Team changed to " .. teamName) end makeButton("💀 Become Criminal", function() changeTeam("Criminal") end) makeButton("👮 Become Police", function() changeTeam("Police") end) makeButton("🧍 Become Prisoner", function() changeTeam("Prisoner") end) --================================================== -- MENU CONTROLS --================================================== local function openMenu() window.Visible = true window.Size = UDim2.new(0.75, 0, 0.7, 0) TweenService:Create( window, TweenInfo.new(0.18, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), { Size = UDim2.new(0.82, 0, 0.78, 0) } ):Play() end local function closeMenu() window.Visible = false end openButton.Activated:Connect(openMenu) closeButton.Activated:Connect(closeMenu) --================================================== -- MOBILE DRAGGING --================================================== local dragging = false local dragStart local startPosition header.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true dragStart = input.Position startPosition = window.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) UserInputService.InputChanged:Connect(function(input) if not dragging then return end if input.UserInputType ~= Enum.UserInputType.Touch and input.UserInputType ~= Enum.UserInputType.MouseMovement then return end local delta = input.Position - dragStart window.Position = UDim2.new( startPosition.X.Scale, startPosition.X.Offset + delta.X, startPosition.Y.Scale, startPosition.Y.Offset + delta.Y ) end) --================================================== -- RESPAWN SUPPORT --================================================== player.CharacterAdded:Connect(function(character) local humanoid = character:WaitForChild("Humanoid", 5) if humanoid then task.wait(0.2) if speedEnabled then humanoid.WalkSpeed = BOOST_SPEED else humanoid.WalkSpeed = NORMAL_SPEED end humanoid.UseJumpPower = true if jumpEnabled then humanoid.JumpPower = BOOST_JUMP else humanoid.JumpPower = NORMAL_JUMP end end end)local Players = game:GetService("Players") local TweenService = game:GetService("TweenService") local UserInputService = game:GetService("UserInputService") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") --================================================== -- SETTINGS --================================================== local NORMAL_SPEED = 16 local BOOST_SPEED = 32 local NORMAL_JUMP = 50 local BOOST_JUMP = 90 --================================================== -- GUI --================================================== local gui = Instance.new("ScreenGui") gui.Name = "PrisonControl" gui.ResetOnSpawn = false gui.IgnoreGuiInset = true gui.Parent = playerGui -- Open button local openButton = Instance.new("TextButton") openButton.Name = "OpenButton" openButton.Parent = gui openButton.Size = UDim2.new(0, 145, 0, 52) openButton.Position = UDim2.new(0, 15, 0.5, -26) openButton.BackgroundColor3 = Color3.fromRGB(28, 31, 38) openButton.TextColor3 = Color3.fromRGB(255, 255, 255) openButton.Text = "☰ MENU" openButton.TextSize = 18 openButton.Font = Enum.Font.GothamBold openButton.AutoButtonColor = true local openCorner = Instance.new("UICorner") openCorner.CornerRadius = UDim.new(0, 12) openCorner.Parent = openButton local openStroke = Instance.new("UIStroke") openStroke.Color = Color3.fromRGB(70, 75, 90) openStroke.Thickness = 1 openStroke.Parent = openButton -- Main window local window = Instance.new("Frame") window.Name = "MainWindow" window.Parent = gui window.AnchorPoint = Vector2.new(0.5, 0.5) window.Position = UDim2.new(0.5, 0, 0.5, 0) window.Size = UDim2.new(0.82, 0, 0.78, 0) window.BackgroundColor3 = Color3.fromRGB(20, 22, 28) window.Visible = false window.ClipsDescendants = true local windowCorner = Instance.new("UICorner") windowCorner.CornerRadius = UDim.new(0, 16) windowCorner.Parent = window local windowStroke = Instance.new("UIStroke") windowStroke.Color = Color3.fromRGB(65, 70, 82) windowStroke.Thickness = 1 windowStroke.Parent = window -- Limit size on larger screens local sizeConstraint = Instance.new("UISizeConstraint") sizeConstraint.MinSize = Vector2.new(290, 380) sizeConstraint.MaxSize = Vector2.new(430, 650) sizeConstraint.Parent = window --================================================== -- HEADER --================================================== local header = Instance.new("Frame") header.Parent = window header.Size = UDim2.new(1, 0, 0, 65) header.BackgroundColor3 = Color3.fromRGB(27, 30, 38) local headerCorner = Instance.new("UICorner") headerCorner.CornerRadius = UDim.new(0, 16) headerCorner.Parent = header local title = Instance.new("TextLabel") title.Parent = header title.BackgroundTransparency = 1 title.Position = UDim2.new(0, 18, 0, 8) title.Size = UDim2.new(1, -75, 0, 28) title.Text = "PRISON CONTROL" title.TextColor3 = Color3.fromRGB(255, 255, 255) title.TextSize = 20 title.Font = Enum.Font.GothamBold title.TextXAlignment = Enum.TextXAlignment.Left local subtitle = Instance.new("TextLabel") subtitle.Parent = header subtitle.BackgroundTransparency = 1 subtitle.Position = UDim2.new(0, 19, 0, 35) subtitle.Size = UDim2.new(1, -80, 0, 20) subtitle.Text = "Personal game control panel" subtitle.TextColor3 = Color3.fromRGB(150, 155, 170) subtitle.TextSize = 12 subtitle.Font = Enum.Font.Gotham subtitle.TextXAlignment = Enum.TextXAlignment.Left local closeButton = Instance.new("TextButton") closeButton.Parent = header closeButton.Size = UDim2.new(0, 42, 0, 42) closeButton.Position = UDim2.new(1, -52, 0, 11) closeButton.BackgroundColor3 = Color3.fromRGB(45, 48, 58) closeButton.Text = "×" closeButton.TextColor3 = Color3.fromRGB(255, 255, 255) closeButton.TextSize = 27 closeButton.Font = Enum.Font.GothamBold local closeCorner = Instance.new("UICorner") closeCorner.CornerRadius = UDim.new(0, 10) closeCorner.Parent = closeButton --================================================== -- SCROLLING CONTENT --================================================== local scroll = Instance.new("ScrollingFrame") scroll.Parent = window scroll.Position = UDim2.new(0, 0, 0, 65) scroll.Size = UDim2.new(1, 0, 1, -65) scroll.BackgroundTransparency = 1 scroll.BorderSizePixel = 0 scroll.ScrollBarThickness = 5 scroll.ScrollBarImageTransparency = 0.25 scroll.CanvasSize = UDim2.new(0, 0, 0, 0) scroll.AutomaticCanvasSize = Enum.AutomaticSize.Y local padding = Instance.new("UIPadding") padding.Parent = scroll padding.PaddingTop = UDim.new(0, 15) padding.PaddingBottom = UDim.new(0, 20) padding.PaddingLeft = UDim.new(0, 15) padding.PaddingRight = UDim.new(0, 15) local layout = Instance.new("UIListLayout") layout.Parent = scroll layout.Padding = UDim.new(0, 10) layout.HorizontalAlignment = Enum.HorizontalAlignment.Center layout.SortOrder = Enum.SortOrder.LayoutOrder --================================================== -- NOTIFICATION --================================================== local notification = Instance.new("TextLabel") notification.Parent = gui notification.AnchorPoint = Vector2.new(0.5, 1) notification.Position = UDim2.new(0.5, 0, 1, -20) notification.Size = UDim2.new(0.8, 0, 0, 45) notification.BackgroundColor3 = Color3.fromRGB(27, 30, 38) notification.TextColor3 = Color3.fromRGB(255, 255, 255) notification.TextSize = 14 notification.Font = Enum.Font.GothamMedium notification.Visible = false notification.TextWrapped = true local notificationCorner = Instance.new("UICorner") notificationCorner.CornerRadius = UDim.new(0, 10) notificationCorner.Parent = notification local notificationStroke = Instance.new("UIStroke") notificationStroke.Color = Color3.fromRGB(70, 75, 90) notificationStroke.Parent = notification local notificationId = 0 local function notify(text) notificationId += 1 local thisId = notificationId notification.Text = text notification.Visible = true task.delay(2.5, function() if thisId == notificationId then notification.Visible = false end end) end --================================================== -- SECTION LABEL --================================================== local function section(text) local label = Instance.new("TextLabel") label.Parent = scroll label.Size = UDim2.new(1, 0, 0, 30) label.BackgroundTransparency = 1 label.Text = text label.TextColor3 = Color3.fromRGB(160, 165, 180) label.TextSize = 13 label.Font = Enum.Font.GothamBold label.TextXAlignment = Enum.TextXAlignment.Left return label end --================================================== -- BUTTON CREATOR --================================================== local function makeButton(text, callback) local button = Instance.new("TextButton") button.Parent = scroll button.Size = UDim2.new(1, 0, 0, 52) button.BackgroundColor3 = Color3.fromRGB(38, 41, 50) button.TextColor3 = Color3.fromRGB(245, 245, 245) button.Text = text button.TextSize = 15 button.Font = Enum.Font.GothamSemibold button.AutoButtonColor = false local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 11) corner.Parent = button local stroke = Instance.new("UIStroke") stroke.Color = Color3.fromRGB(60, 64, 76) stroke.Thickness = 1 stroke.Parent = button button.MouseEnter:Connect(function() TweenService:Create( button, TweenInfo.new(0.12), {BackgroundColor3 = Color3.fromRGB(48, 52, 63)} ):Play() end) button.MouseLeave:Connect(function() TweenService:Create( button, TweenInfo.new(0.12), {BackgroundColor3 = Color3.fromRGB(38, 41, 50)} ):Play() end) button.Activated:Connect(function() callback(button) end) return button end --================================================== -- CHARACTER / HUMANOID --================================================== local function getHumanoid() local character = player.Character if not character then return nil end return character:FindFirstChildOfClass("Humanoid") end --================================================== -- TELEPORT --================================================== local function teleportTo(name) local location = workspace:FindFirstChild(name) if not location then notify("Location '" .. name .. "' was not found.") return end local character = player.Character if not character then notify("Character is not ready.") return end if not location:IsA("BasePart") then notify(name .. " must be a Part.") return end character:PivotTo(location.CFrame + Vector3.new(0, 4, 0)) notify("Teleported to " .. name) end --================================================== -- LOCATIONS --================================================== section("LOCATIONS") makeButton("📍 Yard", function() teleportTo("Yard") end) makeButton("🔒 Cell", function() teleportTo("Cell") end) makeButton("🍽 Cafeteria", function() teleportTo("Cafeteria") end) makeButton("💀 Criminal Base", function() teleportTo("CriminalBase") end) --================================================== -- MOVEMENT --================================================== section("MOVEMENT") local speedEnabled = false local speedButton = makeButton("⚡ Speed Boost • OFF", function(button) local humanoid = getHumanoid() if not humanoid then notify("Character is not ready.") return end speedEnabled = not speedEnabled if speedEnabled then humanoid.WalkSpeed = BOOST_SPEED button.Text = "⚡ Speed Boost • ON" notify("Speed boost enabled") else humanoid.WalkSpeed = NORMAL_SPEED button.Text = "⚡ Speed Boost • OFF" notify("Speed boost disabled") end end) local jumpEnabled = false local jumpButton = makeButton("🦘 Jump Boost • OFF", function(button) local humanoid = getHumanoid() if not humanoid then notify("Character is not ready.") return end jumpEnabled = not jumpEnabled if jumpEnabled then humanoid.UseJumpPower = true humanoid.JumpPower = BOOST_JUMP button.Text = "🦘 Jump Boost • ON" notify("Jump boost enabled") else humanoid.UseJumpPower = true humanoid.JumpPower = NORMAL_JUMP button.Text = "🦘 Jump Boost • OFF" notify("Jump boost disabled") end end) makeButton("↩ Reset Movement", function() local humanoid = getHumanoid() if humanoid then speedEnabled = false jumpEnabled = false humanoid.WalkSpeed = NORMAL_SPEED humanoid.UseJumpPower = true humanoid.JumpPower = NORMAL_JUMP speedButton.Text = "⚡ Speed Boost • OFF" jumpButton.Text = "🦘 Jump Boost • OFF" notify("Movement reset") end end) --================================================== -- TEAMS --================================================== section("TEAMS") local function changeTeam(teamName) local teams = game:GetService("Teams") local team = teams:FindFirstChild(teamName) if not team then notify("Team '" .. teamName .. "' was not found.") return end player.Team = team player:LoadCharacter() notify("Team changed to " .. teamName) end makeButton("💀 Become Criminal", function() changeTeam("Criminal") end) makeButton("👮 Become Police", function() changeTeam("Police") end) makeButton("🧍 Become Prisoner", function() changeTeam("Prisoner") end) --================================================== -- MENU CONTROLS --================================================== local function openMenu() window.Visible = true window.Size = UDim2.new(0.75, 0, 0.7, 0) TweenService:Create( window, TweenInfo.new(0.18, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), { Size = UDim2.new(0.82, 0, 0.78, 0) } ):Play() end local function closeMenu() window.Visible = false end openButton.Activated:Connect(openMenu) closeButton.Activated:Connect(closeMenu) --================================================== -- MOBILE DRAGGING --================================================== local dragging = false local dragStart local startPosition header.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true dragStart = input.Position startPosition = window.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) UserInputService.InputChanged:Connect(function(input) if not dragging then return end if input.UserInputType ~= Enum.UserInputType.Touch and input.UserInputType ~= Enum.UserInputType.MouseMovement then return end local delta = input.Position - dragStart window.Position = UDim2.new( startPosition.X.Scale, startPosition.X.Offset + delta.X, startPosition.Y.Scale, startPosition.Y.Offset + delta.Y ) end) --================================================== -- RESPAWN SUPPORT --================================================== player.CharacterAdded:Connect(function(character) local humanoid = character:WaitForChild("Humanoid", 5) if humanoid then task.wait(0.2) if speedEnabled then humanoid.WalkSpeed = BOOST_SPEED else humanoid.WalkSpeed = NORMAL_SPEED end humanoid.UseJumpPower = true if jumpEnabled then humanoid.JumpPower = BOOST_JUMP else humanoid.JumpPower = NORMAL_JUMP end end end)