0% found this document useful (1 vote)
1K views2 pages

Crimson Shadows Hitbox Extender Script

Uploaded by

Ckrytou Ivan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
1K views2 pages

Crimson Shadows Hitbox Extender Script

Uploaded by

Ckrytou Ivan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

-- > Declarations < --

local Players = game:GetService("Players")


local RunService = game:GetService("RunService")
local LP = [Link]

-- > Functions < --

function CreateHighlight(player)
if [Link] and not [Link]:FindFirstChild("Highlight") then
local highlight = [Link]("Highlight")
[Link] = "Highlight"
[Link] = [Link]
end
end

function UpdateHighlights()
for _, player in pairs(Players:GetPlayers()) do
if player ~= LP then
CreateHighlight(player)

if [Link] then
local highlight = [Link]:FindFirstChild("Highlight")
local pager = [Link]:FindFirstChild("Pager")
local magnum = [Link]:FindFirstChild("Magnum")

if pager then
[Link] = [Link](255, 0, 0) -- Red for
Pager
elseif magnum then
[Link] = [Link](0, 0, 255) -- Blue for
Magnum
else
[Link] = [Link](255, 255, 255) -- White
for others
end
end
end
end
end

function ExtendHitbox(player)
if [Link] and [Link]:FindFirstChild("Head") then
local head = [Link]
[Link] = [Link] + [Link](0, 5, 0) -- Extend head hitbox by 5
studs in height
end
end

function ResetHitbox(player)
if [Link] and [Link]:FindFirstChild("Head") then
local head = [Link]
[Link] = [Link](2, 2, 1) -- Reset to default head size (2x2x1)
end
end

-- > Loops < --

[Link]:Connect(function()
local hasPager = [Link] and [Link]:FindFirstChild("Pager") ~= nil

for _, player in pairs(Players:GetPlayers()) do


if player ~= LP then
if hasPager then
ExtendHitbox(player)
else
ResetHitbox(player)
end
end
end

UpdateHighlights()
end)

You might also like