message (1)
message (1)
com/dawid-
scripts/UI-Libs/main/Vape.txt"))()
local win = lib:Window("AdvanceTech | Universal Hitbox | v1.0 ", Color3.fromRGB(44,
120, 224), Enum.KeyCode.P)
tab:Label("> Hitbox")
local defaultBodyParts = {
"UpperTorso",
"Head",
"HumanoidRootPart"
}
-- -------------------------------------
-- Utility Functions
-- -------------------------------------
local function savedPart(player, part)
if not hitbox_original_properties[player] then
hitbox_original_properties[player] = {}
end
if not hitbox_original_properties[player][part.Name] then
hitbox_original_properties[player][part.Name] = {
CanCollide = part.CanCollide,
Transparency = part.Transparency,
Size = part.Size
}
end
end
-- -------------------------------------
-- Hitbox Functions
-- -------------------------------------
local function extendHitbox(player)
for _, partName in ipairs(defaultBodyParts) do
local part = player.Character and
(player.Character:FindFirstChild(partName) or findClosestPart(player, partName))
if part and part:IsA("BasePart") then
savedPart(player, part)
part.CanCollide = not noCollisionEnabled
part.Transparency = hitboxTransparency / 10
part.Size = Vector3.new(hitboxSize, hitboxSize, hitboxSize)
end
end
end
Players.PlayerAdded:Connect(onPlayerAdded)
RunService.Stepped:Connect(onStepped)
UserInputService.JumpRequest:Connect(function()
if IJ then
local player = Players.LocalPlayer
local humanoid = player.Character and
player.Character:FindFirstChildOfClass("Humanoid")
if humanoid then
humanoid:ChangeState("Jumping")
end
end
end)
character:SetPrimaryPartCFrame(character:GetPrimaryPartCFrame() + Vector3.new(0,
settings.JumpPower, 0))
end
end
end
end)
end
end
Players.LocalPlayer.CharacterAdded:Connect(handleJumpPower)
if Players.LocalPlayer.Character then
handleJumpPower(Players.LocalPlayer.Character)
end
_G.NormalLightingSettings = {
Brightness = game:GetService("Lighting").Brightness,
ClockTime = game:GetService("Lighting").ClockTime,
FogEnd = game:GetService("Lighting").FogEnd,
GlobalShadows = game:GetService("Lighting").GlobalShadows,
Ambient = game:GetService("Lighting").Ambient
}
game:GetService("Lighting"):GetPropertyChangedSignal(property):Connect(function()
if game:GetService("Lighting")[property] ~= targetValue and
game:GetService("Lighting")[property] ~= storeValue then
_G.NormalLightingSettings[property] =
game:GetService("Lighting")[property]
if not _G.FullBrightEnabled then
repeat wait() until _G.FullBrightEnabled
end
game:GetService("Lighting")[property] = targetValue
end
end)
end
connectPropertySignal("Brightness", 1,
_G.NormalLightingSettings.Brightness)
connectPropertySignal("ClockTime", 12, _G.NormalLightingSettings.ClockTime)
connectPropertySignal("FogEnd", 786543, _G.NormalLightingSettings.FogEnd)
connectPropertySignal("GlobalShadows", false,
_G.NormalLightingSettings.GlobalShadows)
connectPropertySignal("Ambient", Color3.fromRGB(178, 178, 178),
_G.NormalLightingSettings.Ambient)
spawn(function()
local latestValue = _G.FullBrightEnabled
while wait() do
if _G.FullBrightEnabled ~= latestValue then
if _G.FullBrightEnabled then
apply()
else
restore()
end
latestValue = _G.FullBrightEnabled
end
end
end)
if _G.FullBrightEnabled then
apply()
end
_G.FullBrightExecuted = true
end
_G.FullBrightEnabled = enabled
if _G.FullBrightEnabled then
apply()
else
restore()
end
end)