Sign up
Login
New
Trending
Archive
English
English
Sign up
Login
New Paste
Add Image
-- SERVICES local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") local TweenService = game:GetService("TweenService") -- PLAYER local player = Players.LocalPlayer local camera = workspace.CurrentCamera -- SETTINGS local BOOST_SPEED = 220 local NORMAL_FOV = 70 local SPEED_FOV = 95 -- HITBOX SETTINGS (أكبر شوية) local HITBOX_SIZE = Vector3.new(7.5, 7.5, 7.5) local HITBOX_TRANSPARENCY = 0.6 -- STATES local macroEnabled = true local uiEnabled = true local holdingQ = false local speedConnection local hitboxConnection local gui -- CHARACTER VARS local character local humanoid local rootPart local NORMAL_SPEED = 16 -- MESSAGE local hint = Instance.new("Hint") hint.Parent = workspace ------------------------------------------------ -- CHARACTER SETUP ------------------------------------------------ local function setupCharacter(char) character = char humanoid = character:WaitForChild("Humanoid") rootPart = character:WaitForChild("HumanoidRootPart") NORMAL_SPEED = humanoid.WalkSpeed end player.CharacterAdded:Connect(setupCharacter) if player.Character then setupCharacter(player.Character) end ------------------------------------------------ -- FOV ------------------------------------------------ local function tweenFOV(value) TweenService:Create( camera, TweenInfo.new(0.25, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {FieldOfView = value} ):Play() end ------------------------------------------------ -- SPEED ------------------------------------------------ local function startSpeed() if speedConnection then return end tweenFOV(SPEED_FOV) speedConnection = RunService.RenderStepped:Connect(function() if holdingQ and macroEnabled and uiEnabled and humanoid then humanoid.WalkSpeed = BOOST_SPEED end end) end local function stopSpeed() holdingQ = false if speedConnection then speedConnection:Disconnect() speedConnection = nil end if humanoid then humanoid.WalkSpeed = NORMAL_SPEED end tweenFOV(NORMAL_FOV) end ------------------------------------------------ -- HITBOX SYSTEM (UI ON / OFF) ------------------------------------------------ local function applyHitbox() for _, plr in pairs(Players:GetPlayers()) do if plr ~= player and plr.Character then local hrp = plr.Character:FindFirstChild("HumanoidRootPart") if hrp then hrp.Size = HITBOX_SIZE hrp.Transparency = HITBOX_TRANSPARENCY hrp.CanCollide = false end end end end local function resetHitbox() for _, plr in pairs(Players:GetPlayers()) do if plr ~= player and plr.Character then local hrp = plr.Character:FindFirstChild("HumanoidRootPart") if hrp then hrp.Size = Vector3.new(2, 2, 1) hrp.Transparency = 1 hrp.CanCollide = true end end end end local function startHitbox() if hitboxConnection then return end hitboxConnection = RunService.RenderStepped:Connect(function() if uiEnabled then applyHitbox() end end) end local function stopHitbox() if hitboxConnection then hitboxConnection:Disconnect() hitboxConnection = nil end resetHitbox() end ------------------------------------------------ -- INPUT ------------------------------------------------ UserInputService.InputBegan:Connect(function(input, gpe) if gpe then return end -- SPEED if input.KeyCode == Enum.KeyCode.Q and macroEnabled and uiEnabled then holdingQ = true startSpeed() -- REMOVE SCRIPT elseif input.KeyCode == Enum.KeyCode.X then macroEnabled = false uiEnabled = false stopSpeed() stopHitbox() if gui then gui:Destroy() end hint.Text = "script gone press Z TO GET IT BACK" -- RESTORE SCRIPT elseif input.KeyCode == Enum.KeyCode.Z then if not macroEnabled then macroEnabled = true uiEnabled = true hint.Text = "macro restored" createUI() startHitbox() end end end) UserInputService.InputEnded:Connect(function(input) if input.KeyCode == Enum.KeyCode.Q then stopSpeed() end end) ------------------------------------------------ -- UI ------------------------------------------------ function createUI() gui = Instance.new("ScreenGui") gui.Parent = player.PlayerGui gui.ResetOnSpawn = false local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 200, 0, 120) frame.Position = UDim2.new(0.05, 0, 0.4, 0) frame.BackgroundColor3 = Color3.fromRGB(25,25,25) frame.Active = true frame.Draggable = true frame.Parent = gui Instance.new("UICorner", frame) local title = Instance.new("TextLabel") title.Size = UDim2.new(1,0,0,30) title.BackgroundTransparency = 1 title.Text = "Macro (Speed + Hitbox)" title.TextColor3 = Color3.new(1,1,1) title.Font = Enum.Font.GothamBold title.TextSize = 14 title.Parent = frame local onBtn = Instance.new("TextButton") onBtn.Size = UDim2.new(0.45,0,0,40) onBtn.Position = UDim2.new(0.05,0,0.5,0) onBtn.Text = "ON" onBtn.BackgroundColor3 = Color3.fromRGB(0,180,0) onBtn.TextColor3 = Color3.new(1,1,1) onBtn.Font = Enum.Font.GothamBold onBtn.Parent = frame Instance.new("UICorner", onBtn) local offBtn = Instance.new("TextButton") offBtn.Size = UDim2.new(0.45,0,0,40) offBtn.Position = UDim2.new(0.5,0,0.5,0) offBtn.Text = "OFF" offBtn.BackgroundColor3 = Color3.fromRGB(180,0,0) offBtn.TextColor3 = Color3.new(1,1,1) offBtn.Font = Enum.Font.GothamBold offBtn.Parent = frame Instance.new("UICorner", offBtn) onBtn.MouseButton1Click:Connect(function() uiEnabled = true startHitbox() end) offBtn.MouseButton1Click:Connect(function() uiEnabled = false stopSpeed() stopHitbox() end) end ------------------------------------------------ -- INIT ------------------------------------------------ camera.FieldOfView = NORMAL_FOV hint.Text = "macro loaded" createUI() startHitbox()
Settings
Title :
[Optional]
Paste Folder :
[Optional]
Select
Syntax :
[Optional]
Select
Markup
CSS
JavaScript
Bash
C
C#
C++
Java
JSON
Lua
Plaintext
C-like
ABAP
ActionScript
Ada
Apache Configuration
APL
AppleScript
Arduino
ARFF
AsciiDoc
6502 Assembly
ASP.NET (C#)
AutoHotKey
AutoIt
Basic
Batch
Bison
Brainfuck
Bro
CoffeeScript
Clojure
Crystal
Content-Security-Policy
CSS Extras
D
Dart
Diff
Django/Jinja2
Docker
Eiffel
Elixir
Elm
ERB
Erlang
F#
Flow
Fortran
GEDCOM
Gherkin
Git
GLSL
GameMaker Language
Go
GraphQL
Groovy
Haml
Handlebars
Haskell
Haxe
HTTP
HTTP Public-Key-Pins
HTTP Strict-Transport-Security
IchigoJam
Icon
Inform 7
INI
IO
J
Jolie
Julia
Keyman
Kotlin
LaTeX
Less
Liquid
Lisp
LiveScript
LOLCODE
Makefile
Markdown
Markup templating
MATLAB
MEL
Mizar
Monkey
N4JS
NASM
nginx
Nim
Nix
NSIS
Objective-C
OCaml
OpenCL
Oz
PARI/GP
Parser
Pascal
Perl
PHP
PHP Extras
PL/SQL
PowerShell
Processing
Prolog
.properties
Protocol Buffers
Pug
Puppet
Pure
Python
Q (kdb+ database)
Qore
R
React JSX
React TSX
Ren'py
Reason
reST (reStructuredText)
Rip
Roboconf
Ruby
Rust
SAS
Sass (Sass)
Sass (Scss)
Scala
Scheme
Smalltalk
Smarty
SQL
Soy (Closure Template)
Stylus
Swift
TAP
Tcl
Textile
Template Toolkit 2
Twig
TypeScript
VB.Net
Velocity
Verilog
VHDL
vim
Visual Basic
WebAssembly
Wiki markup
Xeora
Xojo (REALbasic)
XQuery
YAML
HTML
Expiration :
[Optional]
Never
Self Destroy
10 Minutes
1 Hour
1 Day
1 Week
2 Weeks
1 Month
6 Months
1 Year
Status :
[Optional]
Public
Unlisted
Private (members only)
Password :
[Optional]
Description:
[Optional]
Tags:
[Optional]
Encrypt Paste
(
?
)
Create Paste
You are currently not logged in, this means you can not edit or delete anything you paste.
Sign Up
or
Login
Site Languages
×
English