local z=require(script.Parent.Parent.lib.t)local Y=z.tuple(z.Color3,z.integer)local function Z(z,Z)assert(Y(z,Z))local a,U,G=Color3.toHSV(z)return Color3.fromHSV(a,U,math.clamp(G+(G*Z)/100,0,1))end return Z
local t = require(script.Parent.Parent.lib.t)

local changeBrightnessCheck = t.tuple(t.Color3, t.integer)
local function changeBrightness(color, percent)
	assert(changeBrightnessCheck(color, percent))

	local h, s, v = Color3.toHSV(color)

    return Color3.fromHSV(h, s, math.clamp(v+(v*percent/100), 0, 1))
end

return changeBrightness
