Roblox/luau_corpus huggingface dataset:
-- Calculate label length
local LABEL_TEXT = 'Z'
local LABEL_LENGTH = TextService:GetTextSize(LABEL_TEXT,
    24/2, Enum.Font.SourceSans, Vector2.new(math.huge, math.huge)).X
local ICON_SIZE = 21

local function ScopeInTooltip(props)
    return new('ImageLabel', {
        BackgroundTransparency = 1;
        ImageTransparency = 1 - 0.14;
        Image = 'rbxassetid://4445959523';
        ScaleType = Enum.ScaleType.Slice;
        SliceCenter = Rect.new(4, 4, 12, 12);
        ImageColor3 = Color3.fromRGB(0, 0, 0);
        Size = UDim2.new(0, LABEL_LENGTH + (ICON_SIZE + 9)/2, 0, 30/2);
        LayoutOrder = props.LayoutOrder or 3;
    },
    {
        IconWrapper = new('Frame', {
            Size = UDim2.new(0, ICON_SIZE/2, 0, ICON_SIZE/2);
            Position = UDim2.new(0, 0, 0.5, 0);
            AnchorPoint = Vector2.new(0, 0.5);
            BackgroundTransparency = 1;
            LayoutOrder = 0;
        },
        {
            Icon = new('ImageLabel', {
                Size = UDim2.new(1, 0, 1, 0);
                BackgroundTransparency = 1;
                ImageTransparency = 0.5;
                Image = 'rbxassetid://2244452978';
                ImageRectOffset = Vector2.new(14*3, 0) * 2;
                ImageRectSize = Vector2.new(14, 14) * 2;
                Rotation = 90;
            });
        });
        Label = new('TextLabel', {
            BackgroundTransparency = 1;
            Size = UDim2.new(0, LABEL_LENGTH, 1, 0);
            Position = UDim2.new(0, ICON_SIZE/2, 0.5, 0);
            AnchorPoint = Vector2.new(0, 0.5);
            Font = Enum.Font.SourceSans;
            TextSize = 24/2;
            Text = LABEL_TEXT;
            TextTransparency = 0.5;
            TextYAlignment = Enum.TextYAlignment.Center;
            TextColor3 = Color3.fromRGB(255, 255, 255);
            LayoutOrder = 1;
        });
    })
end

return ScopeInTooltip
--- SERVICES/DIRECTORIES ---

Players = game:GetService("Players")
ServerScriptService = game:GetService("ServerScriptService")
ServerStorage = game:GetService("ServerStorage")
ReplicatedStorage = game:GetService("ReplicatedStorage")
--Valve Properties
local BOVsound = car.DriveSeat.BOV
BOVsound.Volume = 3 --Bov Volume
BOVsound.Pitch = 1 -- Pitch [Don't change this]
BOVsound.SoundId = "rbxassetid://337982546" --Sound

local CPSI = 0
local Values = script.Parent.Parent:FindFirstChild("A-Chassis Interface")
local Throttle = Values.Values.Throttle.Value
local CurrentGear = Values.Values.Gear.Value
local CurrentRPM = Values.Values.RPM.Value
local _Tune = require(car["A-Chassis Tune"])
local MaxRPM = _Tune.Redline
Values.Values.TPSI.Value = PSI
local DEADBOOST = PSI - 0.5
local active = false
local boom = true
-- Only called on the server
function Grid:_onAddGridObject(player, objectTypeName, cellId)
	local objectType = self.objectTypes[objectTypeName]
	local placed = self.contentsManager:add(objectType, cellId)
	if not placed then
		AddGridObjectRejected:FireClient(player, objectTypeName, cellId)
	end
end
--[[
	A 'Symbol' is an opaque marker type that can be used to signify unique
	statuses. Symbols have the type 'userdata', but when printed to the console,
	the name of the symbol is shown.
]]

local Symbol = {}
--[Funkcje]
function onClicked()
	if legansio == false then
		
		g1.Transparency = 1
		g2.Transparency = 0
		wait(0.1)
		g2.Transparency = 1
		g3.Transparency = 0
		pala2.Transparency = 0
		wait(0.1)
		g3.Transparency = 1
		pala3.Transparency = 0
		g4.Transparency = 0
		wait(0.1)
		g5.Transparency = 0
		g4.Transparency = 1
		wait(0.1)
		pala4.Transparency = 0
		g5.Transparency = 1
		g6.Transparency = 0
		wait(0.1)
		g6.Transparency = 1
		g7.Transparency = 0
		wait(0.1)
		g7.Transparency = 1
		g8.Transparency = 0
		pala5.Transparency = 0
		wait(0.1)
		g8.Transparency = 1
		g9.Transparency = 0
		wait(0.1)
		g9.Transparency = 1
		g10.Transparency = 0
		wait(0.1)
		g10.Transparency = 1
		g11.Transparency = 0
		pala6.Transparency = 0
		wait(0.1)
		g11.Transparency = 1
		g12.Transparency = 0
		wait(0.1)
		g12.Transparency = 1
		g13.Transparency = 0
		wait(0.1)
		g13.Transparency = 1
		g14.Transparency = 0
		wait(0.1)
		g14.Transparency = 1
		s1.Transparency = 0
		pala7.Transparency = 0
		wait(1)
		s1.Transparency = 1
		wait(0.1)
		q1.Transparency = 0
		l1.Transparency = 0 
		p1.Transparency = 0
		sp1.Transparency = 0
		sl1.Transparency = 0
		wait(2)
		l1.Transparency = 1
		sl1.Transparency = 1
		l2.Transparency = 0
		sl2.Transparency = 0
		wait(0.1)
		l2.Transparency = 1
		sl2.Transparency = 1
		l3.Transparency = 0
		sl3.Transparency = 0
		wait(0.1)
		l3.Transparency = 1
		sl3.Transparency = 1
		l4.Transparency = 0
		sl4.Transparency = 0
		wait(0.1)
		l4.Transparency = 1
		sl4.Transparency = 1
		l5.Transparency = 0
		sl5.Transparency = 0
		wait(0.1)
		l5.Transparency = 1
		sl5.Transparency = 1
		l6.Transparency = 0
		sl6.Transparency = 0
		wait(0.1)
		l6.Transparency = 1
		sl6.Transparency = 1
		l7.Transparency = 0
		sl7.Transparency = 0
		wait(1)
		wait(2)
		p1.Transparency = 1
		sp1.Transparency = 1
		p2.Transparency = 0
		sp2.Transparency = 0
		wait(0.1)
		p2.Transparency = 1
		sp2.Transparency = 1
		p3.Transparency = 0
		sp3.Transparency = 0
		wait(0.1)
		p3.Transparency = 1
		sp3.Transparency = 1
		p4.Transparency = 0
		sp4.Transparency = 0
		wait(0.1)
		p4.Transparency = 1
		sp4.Transparency = 1
		p5.Transparency = 0
		sp5.Transparency = 0
		wait(0.1)
		p5.Transparency = 1
		sp5.Transparency = 1
		p6.Transparency = 0
		sp6.Transparency = 0
		wait(0.1)
		p6.Transparency = 1
		sp6.Transparency = 1
		p7.Transparency = 0
		sp7.Transparency = 0
		wait(1)
		sl7.Material="Neon"
		sp7.Material="Neon"
		sl7.SurfaceLight.Enabled = true
		sp7.SurfaceLight.Enabled = true
	end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
--Made on September 4 2021

local pp = script.Parent.PPPart.ProximityPrompt

pp.Triggered:Connect(function()
	script.Parent:Destroy()
end)
-- Implements Javascript's `Array.prototype.forEach` as defined below
-- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach
return function<T, U>(t: Array<T>, callback: callbackFn<T> | callbackFnWithThisArg<T, U>, thisArg: U?): ()
	if typeof(t) ~= "table" then
		error(string.format("Array.forEach called on %s", typeof(t)))
	end
	if typeof(callback) ~= "function" then
		error("callback is not a function")
	end

	local len = #t
	local k = 1

	while k <= len do
		local kValue = t[k]

		if thisArg ~= nil then
			(callback :: callbackFnWithThisArg<T, U>)(thisArg, kValue, k, t)
		else
			(callback :: callbackFn<T>)(kValue, k, t)
		end

		if #t < len then
			-- don't iterate on removed items, don't iterate more than original length
			len = #t
		end
		k += 1
	end
end
--------------------) Settings
Damage = 0 -- the ammout of health the player or mob will take

Cooldown = 10 -- cooldown for use of the tool again

ZoneModelName = "Fatal error string" -- name the zone model

MobHumanoidName = "Humanoid"-- the name of player or mob u want to damage
--[[Brakes]]
	Tune.ABSEnabled		= true		-- Implements ABS
	Tune.ABSThreshold	= 20		-- Slip speed allowed before ABS starts working (in SPS) 

	Tune.FBrakeForce	= 4000		-- Front brake force
	Tune.RBrakeForce	= 3000		-- Rear brake force
	Tune.PBrakeForce	= 5000		-- Handbrake force
	
	Tune.FLgcyBForce	= 15000		-- Front brake force [PGS OFF]
	Tune.RLgcyBForce	= 10000		-- Rear brake force [PGS OFF]
	Tune.LgcyPBForce	= 25000		-- Handbrake force [PGS OFF]
--

function Portal.new(surfaceGUI)
	local self = setmetatable({}, Portal)
	
	self.SurfaceGUI = surfaceGUI
	self.Camera = Instance.new("Camera", surfaceGUI)
	self.ViewportFrame = VPF:Clone()
	self.ViewportFrame.CurrentCamera = self.Camera
	self.ViewportFrame.Parent = surfaceGUI
	
	return self
end

function Portal.fromPart(part, enum, parent)
	local surfaceGUI = Instance.new("SurfaceGui")
	surfaceGUI.Face = enum
	surfaceGUI.Adornee = part
	surfaceGUI.ClipsDescendants = true
	surfaceGUI.Parent = parent
	
	return Portal.new(surfaceGUI)
end
--Prompt GetValidPrompt
--* returns the first valid prompt for this response.
function Response:GetValidPrompt()
	local validPrompts = {}
	for _, prompt in pairs(self:GetPrompts()) do
		if prompt:IsValid() then
			table.insert(validPrompts, prompt)
		end
	end
	table.sort(validPrompts, function(a, b) return a.Priority > b.Priority end)
	
	return validPrompts[1]
end
--[[
    Returns true if the given HumanoidDescription has the item described in itemInfo equipped.
]]

local MerchBooth = script:FindFirstAncestor("MerchBooth")

local types = require(MerchBooth.types)
local isAccessory = require(MerchBooth.Modules.isAccessory)
local isClassicClothing = require(MerchBooth.Modules.isClassicClothing)

local isItemEquipped = function(description: HumanoidDescription, itemInfo: types.ItemInfo)
	if isAccessory(itemInfo.assetType) then
		for _, accessory in ipairs(description:GetAccessories(true)) do
			if accessory.AssetId == itemInfo.assetId then
				return true
			end
		end
	elseif isClassicClothing(itemInfo.assetType) then
		if
			description.GraphicTShirt == itemInfo.assetId
			or description.Shirt == itemInfo.assetId
			or description.Pants == itemInfo.assetId
		then
			return true
		end
	end

	return false
end

return isItemEquipped
-------------------------
function onClicked()

FX.ROLL.BrickColor = BrickColor.new("CGA brown")
FX.ROLL.loop.Disabled = true

R.Function1.Disabled = true
FX.ECHO.BrickColor = BrickColor.new("CGA brown")
FX.ECHO.loop.Disabled = true

FX.GATE.BrickColor = BrickColor.new("CGA brown")
FX.GATE.loop.Disabled = true

FX.PHASER.BrickColor = BrickColor.new("CGA brown")
FX.PHASER.loop.Disabled = true

FX.SLIPROLL.BrickColor = BrickColor.new("CGA brown")
FX.SLIPROLL.loop.Disabled = true

FX.FILTER.BrickColor = BrickColor.new("CGA brown")
FX.FILTER.loop.Disabled = true

FX.SENDRETURN.BrickColor = BrickColor.new("Really red")
FX.SENDRETURN.loop.Disabled = true

FX.TRANS.BrickColor = BrickColor.new("CGA brown")
FX.TRANS.loop.Disabled = true

FX.MultiTapDelay.BrickColor = BrickColor.new("CGA brown")
FX.MultiTapDelay.loop.Disabled = true

FX.DELAY.BrickColor = BrickColor.new("CGA brown")
FX.DELAY.loop.Disabled = true

FX.REVROLL.BrickColor = BrickColor.new("CGA brown")
FX.REVROLL.loop.Disabled = true
R.loop.Disabled = false
R.Function2.Disabled = false
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
--Active

Values.Gear.Changed:Connect(function(Value)
	local TextLabel = Dash.Gear.TextValue
	if Value == -1 then TextLabel.Text = "R"
	elseif Value == 0 then TextLabel.Text = "N"
	else TextLabel.Text = Value end
end)

Values.RPM.Changed:Connect(function(Value)
	for i = 1, 30 do
		if Value >= (_Tune.Redline - 500) / 30 * i then
			Dash.Tach.ln[i].BackgroundTransparency = 0
		else
			Dash.Tach.ln[i].BackgroundTransparency = 0.7
		end
	end
	for i = 1, 3 do
		if Value > _Tune.Redline - i * 750 then
			Dash.Parent.Parent.Parent["RPM"..i].Material = "Neon"
		else
			Dash.Parent.Parent.Parent["RPM"..i].Material = "SmoothPlastic"
		end
	end
end)

Values.Velocity.Changed:Connect(function(Value)
	Dash.Speed.TextValue.Text = math.floor(Value.Magnitude * Speed_Units)
end)

Values.PBrake.Changed:Connect(function() CheckValue(Values.PBrake) end)
Values.ABS.Changed:Connect(function() CheckValue(Values.ABS) end)
Values.TCS.Changed:Connect(function() CheckValue(Values.TCS) end)

Values.ABSActive.Changed:Connect(function(Value)
	wait()
	if Values.ABS.Value == true then
		if Dash.ABS.ImageTransparency == 0 then
			Dash.ABS.ImageTransparency = 0.7
		else
			Dash.ABS.ImageTransparency = 0
		end
	end
end)

Values.TCSActive.Changed:Connect(function(Value)
	wait()
	if Values.TCS.Value == true then
		if Dash.TCS.ImageTransparency == 0 then
			Dash.TCS.ImageTransparency = 0.7
		else
			Dash.TCS.ImageTransparency = 0
		end
	end
end)

Values.Horsepower.Changed:Connect(function(Value)
	if Value > tonumber(Dash.HP.TextValue.Text) then
		Dash.HP.TextValue.Text = math.floor(Value)
	end
end)

Values.Torque.Changed:Connect(function(Value)
	if Value > tonumber(Dash.TQ.TextValue.Text) then
		Dash.TQ.TextValue.Text = math.floor(Value)
	end
end)

game.Players.LocalPlayer.Character.Humanoid.Touched:Connect(function(part)
	if part.Name == "Start" and part.Parent.Name == "Wes_Timing_System_3" then
		local timeStart = tick()
		wait()
		if Dash.Time.TextValue.Text ~= "--:---.---" then
			game["Run Service"]:UnbindFromRenderStep("GaugeTimer")
			wait(3)
		end
		local function updateTimer()
			local value = tick() - timeStart
			value = math.floor(value*1000)/1000
			local min = math.floor(value/60)
			local sec = math.floor(value)-60*min
			local milisec = math.floor((value-sec-min*60)*1000+0.5)

			if min > 0 and min < 10 then min = "0"..tostring(min)
			elseif min < 1 then min = "00" end

			if sec > 0 and sec < 10 then sec = "0"..tostring(sec)
			elseif sec < 1 then sec = "00" end

			if string.len(tostring(milisec)) == 2 then milisec = tostring(milisec).."0"
			elseif string.len(tostring(milisec)) == 1 then milisec = tostring(milisec).."00" end

			Dash.Time.TextValue.Text = min..":"..sec.."."..milisec
		end

		game["Run Service"]:BindToRenderStep("GaugeTimer",50,updateTimer)
	end
end)
--[[
	Used to set a handler for when the promise resolves, rejects, or is
	cancelled. Returns a new promise chained from this promise.
]]
function Promise.prototype:_finally(traceback, finallyHandler, onlyOk)
	if not onlyOk then
		self._unhandledRejection = false
	end

	-- Return a promise chained off of this promise
	return Promise._new(traceback, function(resolve, reject)
		local finallyCallback = resolve
		if finallyHandler then
			finallyCallback = createAdvancer(
				traceback,
				finallyHandler,
				resolve,
				reject
			)
		end

		if onlyOk then
			local callback = finallyCallback
			finallyCallback = function(...)
				if self._status == Promise.Status.Rejected then
					return resolve(self)
				end

				return callback(...)
			end
		end

		if self._status == Promise.Status.Started then
			-- The promise is not settled, so queue this.
			table.insert(self._queuedFinally, finallyCallback)
		else
			-- The promise already settled or was cancelled, run the callback now.
			finallyCallback(self._status)
		end
	end, self)
end

function Promise.prototype:finally(finallyHandler)
	assert(
		finallyHandler == nil or type(finallyHandler) == "function",
		string.format(ERROR_NON_FUNCTION, "Promise:finally")
	)
	return self:_finally(debug.traceback(nil, 2), finallyHandler)
end
Promise.prototype.Finally = Promise.prototype.finally
---Set Free Camera
function module.SetFreeCamera(Player,Target)
	local camera = workspace.CurrentCamera
	camera.CameraType = Enum.CameraType.Custom
	
	camera.CameraSubject = Target
end

return module
--BOV--
script.Parent.Parent.Values.RPM.Changed:connect(function()
	local t = 0
	t = (totalPSI*10)
	BOVact = math.floor(t)
end)
script.Parent.Parent.Values.RPM.Changed:connect(function()
	wait(0.1)
	local t2 = 0
	t2 = (totalPSI*10)
	BOVact2 = math.floor(t2)
end)
script.Parent.Parent.Values.RPM.Changed:connect(function()
	if BOVact > BOVact2 then
		if BOV.IsPlaying == false then
			BOV:Play()
			
		end
	end
	if BOVact < BOVact2 then
		if BOV.IsPlaying == true then
			BOV:Stop()
			
		end
	end
end)
--[[ Script Variables ]]--
while not Players.LocalPlayer do
	task.wait()
end

local lastInputType = nil
local LocalPlayer = Players.LocalPlayer
local PlayerGui = LocalPlayer:WaitForChild('PlayerGui')
local IsTouchDevice = UserInputService.TouchEnabled
local UserMovementMode = IsTouchDevice and GameSettings.TouchMovementMode or GameSettings.ComputerMovementMode
local DevMovementMode = IsTouchDevice and LocalPlayer.DevTouchMovementMode or LocalPlayer.DevComputerMovementMode
local IsUserChoice = (IsTouchDevice and DevMovementMode == Enum.DevTouchMovementMode.UserChoice) or (DevMovementMode == Enum.DevComputerMovementMode.UserChoice)
local TouchGui = nil
local TouchControlFrame = nil
local IsModalEnabled = UserInputService.ModalEnabled
local BindableEvent_OnFailStateChanged = nil
local isJumpEnabled = false
--|| VARIABLES ||--
local Player = Players.LocalPlayer
local Character = script.Parent
local Humanoid = Character:WaitForChild("Humanoid")

local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
local Torso = Character:WaitForChild("Torso")

local RootJoint = HumanoidRootPart.RootJoint
local LeftHipJoint = Torso["Left Hip"]
local RightHipJoint = Torso["Right Hip"]

local function Lerp(a, b, c)
	return a + (b - a) * c
end

local Force = nil
local Direction = nil
local Value1 = 0
local Value2 = 0

local RootJointC0 = RootJoint.C0
local LeftHipJointC0 = LeftHipJoint.C0
local RightHipJointC0 = RightHipJoint.C0

RunService.RenderStepped:Connect(function()
	--> To get the force, we multiply the velocity by 1,0,1, we don't want the Y value so we set y to 0
	Force = HumanoidRootPart.Velocity * Vector3.new(1,0,1)
	if Force.Magnitude > 2 then
		--> This represents the direction
		Direction = Force.Unit	
		Value1 = HumanoidRootPart.CFrame.RightVector:Dot(Direction)
		Value2 = HumanoidRootPart.CFrame.LookVector:Dot(Direction)
	else
		Value1 = 0
		Value2 = 0
	end

	--> the values being multiplied are how much you want to rotate by

	RootJoint.C0 = RootJoint.C0:Lerp(RootJointC0 * CFrame.Angles(math.rad(Value2 * 5), math.rad(-Value1 * 5), 0), 0.2)
end)
--// # key, Cruise
mouse.KeyDown:connect(function(key)
	if key=="b" then 
		veh.Lightbar.middle.Beep:Play()
		veh.Lightbar.Remotes.CruiseEvent:FireServer(true)
	end
end)
-------- OMG HAX

r = game:service("RunService")


local damage = 5


local slash_damage = 12


sword = script.Parent.Handle
Tool = script.Parent


local SlashSound = Instance.new("Sound")
SlashSound.SoundId = "http://www.roblox.com/asset/?id=12814239"
SlashSound.Parent = sword
SlashSound.Volume = 1


local UnsheathSound = Instance.new("Sound")
UnsheathSound.SoundId = "http://www.roblox.com/asset/?id=12813086"
UnsheathSound.Parent = sword
UnsheathSound.Volume = 1


function blow(hit)
	local humanoid = hit.Parent:findFirstChild("Humanoid")
	local vCharacter = Tool.Parent
	local vPlayer = game.Players:playerFromCharacter(vCharacter)
	local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
	if humanoid~=nil and humanoid ~= hum and hum ~= nil then
		-- final check, make sure sword is in-hand

		local right_arm = vCharacter:FindFirstChild("Right Arm")
		if (right_arm ~= nil) then
			local joint = right_arm:FindFirstChild("RightGrip")
			if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
				tagHumanoid(humanoid, vPlayer)
				humanoid:TakeDamage(damage)
				wait(1)
				untagHumanoid(humanoid)
			end
		end


	end
end


function tagHumanoid(humanoid, player)
	local creator_tag = Instance.new("ObjectValue")
	creator_tag.Value = player
	creator_tag.Name = "creator"
	creator_tag.Parent = humanoid
end

function untagHumanoid(humanoid)
	if humanoid ~= nil then
		local tag = humanoid:findFirstChild("creator")
		if tag ~= nil then
			tag.Parent = nil
		end
	end
end


function attack()
	damage = slash_damage
	SlashSound:play()
	local anim = Instance.new("StringValue")
	anim.Name = "toolanim"
	anim.Value = "Slash"
	anim.Parent = Tool
end


function swordUp()
	Tool.GripForward = Vector3.new(-1,0,0)
	Tool.GripRight = Vector3.new(0,1,0)
	Tool.GripUp = Vector3.new(0,0,1)
end

function swordOut()
	Tool.GripForward = Vector3.new(0,0,1)
	Tool.GripRight = Vector3.new(0,-1,0)
	Tool.GripUp = Vector3.new(-1,0,0)
end



Tool.Enabled = true

function onActivated()

	if not Tool.Enabled then
		return
	end

	Tool.Enabled = false

	local character = Tool.Parent;
	local humanoid = character.Humanoid
	if humanoid == nil then
		print("Humanoid not found")
		return 
	end

	

	attack()

	wait(1)

	Tool.Enabled = true
end


function onEquipped()
	UnsheathSound:play()
end


script.Parent.Activated:connect(onActivated)
script.Parent.Equipped:connect(onEquipped)


connection = sword.Touched:connect(blow)
--- Skill
local UIS = game:GetService("UserInputService")
local plr = game.Players.LocalPlayer
local Mouse = plr:GetMouse()
local Debounce = true
Player = game.Players.LocalPlayer

UIS.InputBegan:Connect(function(Input)
	if Input.KeyCode == Enum.KeyCode.Z and Debounce == true and Tool.Equip.Value == true and Tool.Active.Value == "None" then
		Debounce = false
		Tool.Active.Value = "FireFist"
		wait(0.1)
		Track1 = Player.Character.Humanoid:LoadAnimation(script.Anim01)
		Track1:Play()
		wait(0.15)
		script.Fire:FireServer(plr)
	local hum =  Player.Character.Humanoid
	for i = 1,30 do
		wait()
		hum.CameraOffset = Vector3.new(
			math.random(-1,1),
			math.random(-1,1),
			math.random(-1,1)
		)
	end
	hum.CameraOffset = Vector3.new(0,0,0)
	    wait(0.15)
		Tool.Active.Value = "None"
		wait(2)
		Debounce = true
	end
end)
--Update Function
function update()
	local count = 0
	local t = frame.Search.Text
	local abssizey
	for _, v in pairs(scroll:GetChildren()) do
		if v.ClassName=="TextButton" then
			v.Visible = v.Text:sub(1, t:len()):lower()==t:lower()
			abssizey=v.AbsoluteSize.Y
			if v.Visible then
				count = count + 1
			end
		end
	end
	local csize = (count*abssizey)
	scroll.CanvasSize = UDim2.new(0, 0, 0, csize)
end
-- Increase chase speed every specified interval
while true do
	wait(increaseInterval)
	increaseChaseSpeed()
end
--Make sure the mouse is on the canvas
canvas.MouseEnter:Connect(function()
	
	uis.MouseIconEnabled = false
	cursor.Visible = true
	
	local zoom = (workspace.CurrentCamera.CFrame.Position - game.Players.LocalPlayer.Character.Head.Position).Magnitude
	game.Players.LocalPlayer.CameraMinZoomDistance = zoom
	game.Players.LocalPlayer.CameraMaxZoomDistance = zoom
end)
canvas.MouseLeave:Connect(function()
	
	uis.MouseIconEnabled = true
	cursor.Visible = false
	
	game.Players.LocalPlayer.CameraMinZoomDistance = 0.5
	game.Players.LocalPlayer.CameraMaxZoomDistance = 128
end)
-- Tags --

local pantsId = script.Parent.Parent.Pants.PantsTemplate
local shirtId = script.Parent.Parent.Shirt.ShirtTemplate
local cPart = script.Parent
local cDetector = script.Parent.ProximityPrompt





local function onClicked(player)
	if player.Team.TeamColor == BrickColor.new("Mint")then




	local foundShirt = player.Character:FindFirstChild("Shirt") -- Tries to find Shirt
	if not foundShirt then -- if there is no shirt
		print("No shirt found, creating for "..player.Name)
		local newShirt = Instance.new("Shirt",player.Character)
		newShirt.Name = "Shirt"
	else if foundShirt then -- if there is a shirt
			print("Shirt found, reconstructing for "..player.Name)
			player.Character.Shirt:remove()
			local newShirt = Instance.new("Shirt",player.Character)
			newShirt.Name = "Shirt"
		end
	end




	local foundPants = player.Character:FindFirstChild("Pants") -- Tries to find Pants
	if not foundPants then -- if there are no pants
		print("No pants found, creating for "..player.Name)
		local newPants = Instance.new("Pants",player.Character)
		newPants.Name = "Pants"
	else if foundPants then -- if there are pants
			print("Pants found, reconstructing for "..player.Name)
			player.Character.Pants:remove()
			local newPants = Instance.new("Pants",player.Character)
			newPants.Name = "Pants"
		end
	end

	player.Character.Shirt.ShirtTemplate = shirtId
	player.Character.Pants.PantsTemplate = pantsId
	end
end