Universal Script πŸ“Œ
2.4k Views
425 Executions

Hitbox visualizer

Universal Script πŸ“Œ
11 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

By chat gpt lol (u need to change the "local PING_ESTIMATE = 0.0979" by your average ping, try to see it with Shift + F3 Your real ping. like 0.12 = 120 ms) The red box one its the server hitbox The green box its the hitbox client before the server confirms before the ping arrives

View Raw
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local StarterGui = game:GetService("StarterGui")
local LP = Players.LocalPlayer

local TRANSPARENCY = 0.35
local HITBOX_COLOR = Color3.fromRGB(255, 0, 0)
local LOCAL_COLOR = Color3.fromRGB(0, 255, 0)
local HITBOX_SIZE = Vector3.new(2.5, 3.5, 1)
local PING_ESTIMATE = 0.0979
local MAX_HISTORY_SECONDS = 2.0
local SMOOTH_LERP = 0.9
local SHOW_LOCAL_HITBOX = true

local history = {}
local serverVisualizer = nil
local localVisualizer = nil
local hbConn = nil

local function log(msg)
	print("[HitboxViz] " .. msg)
end

local function createHitboxPart(name, color)
	local p = Instance.new("Part")
	p.Name = name
	p.Size = HITBOX_SIZE
	p.Anchored = true
	p.CanCollide = false
	p.Locked = true
	p.Material = Enum.Material.ForceField
	p.Color = color
	p.Transparency = TRANSPARENCY

	local cam = workspace.CurrentCamera
	if cam then
		p.Parent = cam
	else
		p.Parent = workspace
	end


Comments

2
Log in to join the conversation. Login
Matukex_Studio's profile picture
Matukex_Studio11 months ago

Buen chatgpt Hermano. no pudiste eliminar los comentarios almenos?

2
reynaldolefodeaxdlo's profile picture
reynaldolefodeaxdloUploader11 months ago

@Matukex_Studio ya lo hice

1