Roblox/luau_corpus huggingface dataset:
--[[
	Cleans up the task passed in as the argument.
	A task can be any of the following:

	- an Instance - will be destroyed
	- an RBXScriptConnection - will be disconnected
	- a function - will be run
	- a table with a `Destroy` or `destroy` function - will be called
	- an array - `cleanup` will be called on each item
]]

export type Task =
	Instance |
	RBXScriptConnection |
	() -> () |
	{destroy: (any) -> ()} |
	{Destroy: (any) -> ()} |
	{Task}

local function cleanup(task: any)
	local taskType = typeof(task)

	-- case 1: Instance
	if taskType == "Instance" then
		task:Destroy()

	-- case 2: RBXScriptConnection
	elseif taskType == "RBXScriptConnection" then
		task:Disconnect()

	-- case 3: callback
	elseif taskType == "function" then
		task()

	elseif taskType == "table" then
		-- case 4: destroy() function
		if typeof(task.destroy) == "function" then
			task:destroy()

		-- case 5: Destroy() function
		elseif typeof(task.Destroy) == "function" then
			task:Destroy()

		-- case 6: array of tasks
		elseif task[1] ~= nil then
			for _, subtask in ipairs(task) do
				cleanup(subtask)
			end
		end
	end
end

return cleanup
--tycoonsFolder.ChildAdded:Connect(function(tycoon)

	--local purchaseHandler = tycoon:FindFirstChild("PurchaseHandler")
	--if purchaseHandler ~= nil then
		--purchaseHandler:Destroy()
		--purchaseHandlerNew:Clone().Parent = tycoon
--// Hash: f1e25cc5a70586bc0cb2ccfb248fa3890a7efaf8846040164a31a46176c8dcdb35134e7badd64ce621fc28380cb315c7
-- Decompiled with the Synapse X Luau decompiler.

local l__LocalPlayer__1 = game.Players.LocalPlayer;
local l__TweenService__2 = game:GetService("TweenService");
for v3, v4 in pairs(script:WaitForChild("StatModules"):GetChildren()) do
	local v5 = Instance.new("IntValue");
	v5.Name = v4.Name .. "Val";
	v5.Parent = v4;
	v5.Value = 0;
	local u1 = require(v4);
	local u2 = script.Parent:FindFirstChild(v4.Name);
	local function v6(p1)
		if p1 ~= nil then
			p1 = tonumber(p1);
		else
			p1 = u1.value;
		end;
		if type(p1) ~= "number" then
			return;
		end;
		local v7 = tonumber(u2.Text);
		u2.Size = UDim2.new(1, 0, 0.3, 0);
		if v7 < p1 then
			u2.TextColor3 = u2:GetAttribute("FadeIncrease");
			u2.SoundIncrease:Play();
		elseif p1 < v7 then
			u2.TextColor3 = u2:GetAttribute("FadeDecrease");
			u2.SoundDecrease:Play();
		end;
		l__TweenService__2:Create(u2, TweenInfo.new(0.7, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut), {
			Size = UDim2.new(1, 0, 0.25, 0), 
			TextColor3 = Color3.new(1, 1, 1)
		}):Play();
		l__TweenService__2:Create(v5, TweenInfo.new(0.4, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {
			Value = tonumber(p1)
		}):Play();
		if p1 <= 0 then
			u2.Visible = false;
			return;
		end;
		u2.Visible = true;
	end;
	v5.Changed:Connect(function(p2)
		u2.Text = tostring(p2);
	end);
	if v4.Name == "Gold" then
		local u3 = tick();
		local u4 = true;
		u1.event.Event:Connect(function()
			if u3 <= tick() then
				u3 = tick() + 0.2;
			end;
			u4 = false;
		end);
		game:GetService("ReplicatedStorage"):WaitForChild("Bricks"):WaitForChild("GetGold").OnClientEvent:Connect(function(p3)
			u3 = tick() + 0.5;
			u4 = false;
			print("yeah");
			local v8, v9 = workspace.CurrentCamera:WorldToScreenPoint(p3);
			local v10 = script.Parent.Parent.Gold:Clone();
			v10.Visible = true;
			v10.Name = "GoldLive";
			v10.Position = UDim2.new(0, v8.X, 0, v8.Y);
			v10.Parent = script.Parent.Parent;
			local l__AbsolutePosition__11 = u2.Icon.AbsolutePosition;
			local l__AbsoluteSize__12 = u2.Icon.AbsoluteSize;
			l__TweenService__2:Create(v10, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.In), {
				Size = UDim2.new(0, l__AbsoluteSize__12.X, 0, l__AbsoluteSize__12.Y), 
				Position = UDim2.new(0, l__AbsolutePosition__11.X + l__AbsoluteSize__12.X / 2, 0, l__AbsolutePosition__11.Y + l__AbsoluteSize__12.Y / 2)
			}):Play();
			game.Debris:AddItem(v10, 0.5);
		end);
		game:GetService("RunService").Heartbeat:Connect(function()
			if u4 == false and u3 <= tick() then
				u4 = true;
				v6();
			end;
		end);
	else
		u1.event.Event:Connect(v6);
	end;
	v6();
end;
wait(5);
pcall(function()
	script.Parent.Parent:WaitForChild("ImageLabel"):TweenPosition(UDim2.new(0.85, 0, 0.8, 0), "Out", "Quad", 1);
	script.Parent:TweenPosition(UDim2.new(1, 0, 1, 0), "Out", "Quad", 2);
end);
-- GUI DETECTION SETTINGS

settings.AntiOwlHub = true
settings.AntiDex = false
settings.AntiInfiniteYield = true
settings.AntiRemoteSpy = true
--Tool.Spray.Transparency = 1
--Tool.Spray.Script.Disabled = true
--Tool.Nossle.Spray.Enabled = false
event:FireServer("Button1Up")
end

function onEquip(mouse)
if mouse == nil then return end

mouse.Button1Down:connect(function() OB1D(mouse) end)
mouse.Button1Up:connect(function() OB1U(mouse) end)

end
script.Parent.Equipped:connect(onEquip)
--s.Pitch = 0.7
--[[for x = 1, 50 do
s.Pitch = s.Pitch + 0.20 1.900
s:play()
wait(0.001)
end]]
--[[Chopper level 5=1.2, Chopper level 4=1.04]]

while s.Pitch<0.65 do
s.Pitch=s.Pitch+0.009
s:Play()
if s.Pitch>1 then
	s.Pitch=1
end
wait(-9)
end

while s.Pitch<0.97 do
s.Pitch=s.Pitch+0.003
s:Play()
if s.Pitch>1 then
	s.Pitch=1
end
wait(-9)
end
while true do
for x = 1, 500 do
s:play()
wait(-9)
end
end
--[[ alexnewtron 2014 ]]--

local p = game.Players.LocalPlayer;
local h = p.Character:findFirstChild("Humanoid");

if (h ~= nil) then
	wait(7+math.random())
	h.WalkSpeed = 16;	
end
-- Called when the RealismHook tag is added to a 
-- humanoid in the DataModel. Mounts the look-angle
-- and material walking sounds into this humanoid.
 
function CharacterRealism:OnHumanoidAdded(humanoid)
	if humanoid:IsA("Humanoid") then
		if not self.SkipLookAngle then
			self:MountLookAngle(humanoid)
		end
		
		if not self.SkipMaterialSounds then
			self:MountMaterialSounds(humanoid)
		end
	end
end
-- Note: The active transparency controller could be made to listen for this event itself.
function CameraModule:OnCameraSubjectChanged()
	local camera = workspace.CurrentCamera
	local cameraSubject = camera and camera.CameraSubject

	if self.activeTransparencyController then
		self.activeTransparencyController:SetSubject(cameraSubject)
	end

	if self.activeOcclusionModule then
		self.activeOcclusionModule:OnCameraSubjectChanged(cameraSubject)
	end

	self:ActivateCameraController(nil, camera.CameraType)
end

function CameraModule:OnCameraTypeChanged(newCameraType)
	if newCameraType == Enum.CameraType.Scriptable then
		if UserInputService.MouseBehavior == Enum.MouseBehavior.LockCenter then
			UserInputService.MouseBehavior = Enum.MouseBehavior.Default
		end
	end

	-- Forward the change to ActivateCameraController to handle
	self:ActivateCameraController(nil, newCameraType)
end
-- CONFIRMATIONS and FETCHES
function TribeModule:ValidateLeadership(playerName,tribeName)
	
end

function TribeModule:ValidateMembership(playerName,tribeName)
	
end

function TribeModule:GetPlayerTribe(playerName)
	
end

function TribeModule:GetTribeColor(tribeName)
	
end
-- Prepend to list so the last added is the first tested.
local function addSerializer(plugin_)
	table.insert(PLUGINS, 1, plugin_)
end

local function getSerializers()
	return PLUGINS
end
--[=[
	Catch errors from the promise

	@param onRejected function
	@return Promise<T>
]=]
function Promise:Catch(onRejected)
	return self:Then(nil, onRejected)
end
--[=[
	http://reactivex.io/documentation/operators/using.html

	Each time a subscription occurs, the resource is constructed
	and exists for the lifetime of the observation. The observableFactory
	uses the resource for subscription.

	:::note
	Note from Quenty: I haven't found this that useful.
	:::

	@param resourceFactory () -> MaidTask
	@param observableFactory (MaidTask) -> Observable<T>
	@return Observable<T>
]=]
function Rx.using(resourceFactory, observableFactory)
	return Observable.new(function(sub)
		local maid = Maid.new()

		local resource = resourceFactory()
		maid:GiveTask(resource)

		local observable = observableFactory(resource)
		assert(Observable.isObservable(observable), "Bad observable")

		maid:GiveTask(observable:Subscribe(sub:GetFireFailComplete()))

		return maid
	end)
end
--[=[
	Shorthand for `Promise:andThen(nil, failureHandler)`.

	Returns a Promise that resolves if the `failureHandler` worked without encountering an additional error.

	:::warning
	Within the failure handler, you should never assume that the rejection value is a string. Some rejections within the Promise library are represented by [[Error]] objects. If you want to treat it as a string for debugging, you should call `tostring` on it first.
	:::


	@param failureHandler (...: any) -> ...any
	@return Promise<...any>
]=]
function Promise.prototype:catch(failureCallback)
	assert(
		failureCallback == nil or type(failureCallback) == "function",
		string.format(ERROR_NON_FUNCTION, "Promise:catch")
	)
	return self:_andThen(debug.traceback(nil, 2), nil, failureCallback)
end
---------------------------------------------------------------
function onChildAdded(child)
 script.Parent.Parent.Body.Lightbar.Park.Value = false
end

function onChildRemoved(child)
	if script.Parent.Parent.Body.Lightbar.on.Value == true then 
	 script.Parent.Parent.Body.Lightbar.Park.Value = true
end
end

script.Parent.ChildAdded:connect(onChildAdded)
script.Parent.ChildRemoved:connect(onChildRemoved)
--☻☻☻☻☻☻☻

local P1 = script.Parent.PivotL
local P2 = script.Parent.PivotR
local TS = game:GetService("TweenService")

local CD1 = Instance.new("ClickDetector",script.Parent.L)
local CD2 = Instance.new("ClickDetector",script.Parent.R)

local toggle = false
local deb = false
local function Box()
	if not deb then
		deb = true
		if toggle == false then
			TS:Create(P1,
				TweenInfo.new(2,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut,0,false,0),
				{CFrame = P1.CFrame * CFrame.Angles(math.rad(160),0,0)}
			):Play()
			local t1 = TS:Create(P2,
				TweenInfo.new(2,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut,0,false,0),
				{CFrame = P2.CFrame * CFrame.Angles(math.rad(-170),0,0)}
			)
			t1.Completed:Connect(function()
				toggle = not toggle
				deb = false
			end)
			t1:Play()
		else
			TS:Create(P1,
				TweenInfo.new(2,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut,0,false,0),
				{CFrame = P1.CFrame * CFrame.Angles(math.rad(-160),0,0)}
			):Play()
			local t1 = TS:Create(P2,
				TweenInfo.new(2,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut,0,false,0),
				{CFrame = P2.CFrame * CFrame.Angles(math.rad(170),0,0)}
			)
			t1.Completed:Connect(function()
				toggle = not toggle
				deb = false
			end)
			t1:Play()
		end
	end
end

CD1.MouseClick:Connect(function()
	Box()
end)

CD2.MouseClick:Connect(function()
	Box()
end)
--Services
local Marketplace	= game:GetService("MarketplaceService")
local Http			= game:GetService("HttpService")
-- setup variables
RootHipJoint = HumanoidRootPart:FindFirstChildOfClass("Motor6D")
RootOldC0 = RootHipJoint.C0
LeftShoulder = Torso:WaitForChild("Left Shoulder")
RightShoulder = Torso:WaitForChild("Right Shoulder")
-- ================================================================================
-- LOCAL FUNCTIONS
-- ================================================================================
local function InputBegan(input, processed)
	if input.UserInputType == keyboardInput then
		local key = input.KeyCode
		isDown[key] = true
		onKeyDown:Fire(key)
	end
end -- InputBegan()

local function InputEnded(input, processed)
	if input.UserInputType == keyboardInput then
		local key = input.KeyCode
		isDown[key] = false
		onKeyUp:Fire(key)
	end
end -- InputEnded()
--[[
		___      _______                _     
	   / _ |____/ ___/ /  ___ ____ ___ (_)__ 
	  / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
	 /_/ |_|   \___/_//_/\_,_/___/___/_/___/
 						SecondLogic @ Inspare
]]


local autoscaling	= true					--Estimates top speed

local UNITS	= {								--Click on speed to change units
											--First unit is default	
	{
		units			= "MPH"				,
		scaling			= (10/12) * (60/88)	, -- 1 stud : 10 inches | ft/s to MPH
		maxSpeed		= 140				,
		spInc			= 10				, -- Increment between labelled notches
	},
	
	{
		units			= "KM/H"			,
		scaling			= (10/12) * 1.09728	, -- 1 stud : 10 inches | ft/s to KP/H
		maxSpeed		= 220				,
		spInc			= 20				, -- Increment between labelled notches
	},
	
	{
		units			= "SPS"				,
		scaling			= 1					, -- Roblox standard
		maxSpeed		= 240				,
		spInc			= 20				, -- Increment between labelled notches
	}
}
-- Merges four bytes into a uint32 number.
function common.bytes_to_uint32(a, b, c, d)
	return a * 0x1000000 + b * 0x10000 + c * 0x100 + d
end
--

FLDisk.CanCollide = true
FRDisk.CanCollide = true
RLDisk.CanCollide = true
RRDisk.CanCollide = true
hitboxF.CanCollide = true
hitboxR.CanCollide = true

weight.CustomPhysicalProperties = PhysicalProperties.new((((VehicleWeight/160)*0.4)-5.2)+0.4,1,1,1,1)
engine.CustomPhysicalProperties = PhysicalProperties.new(0.04,1,1,1,1)
fuel.CustomPhysicalProperties = PhysicalProperties.new(0.06,1,1,1,1)
trans.CustomPhysicalProperties = PhysicalProperties.new(0.1,1,1,1,1)
diff.CustomPhysicalProperties = PhysicalProperties.new(0.1,1,1,1,1)

weight.Transparency = 1
engine.Transparency = 1
fuel.Transparency = 1
trans.Transparency = 1
diff.Transparency = 1

FLDisk.CustomPhysicalProperties = PhysicalProperties.new(1,2,0,100,0)
FRDisk.CustomPhysicalProperties = PhysicalProperties.new(1,2,0,100,0)
RLDisk.CustomPhysicalProperties = PhysicalProperties.new(1,2,0,100,0)
RRDisk.CustomPhysicalProperties = PhysicalProperties.new(1,2,0,100,0)

FLPad.CustomPhysicalProperties = PhysicalProperties.new(1,2,0,100,0)
FRPad.CustomPhysicalProperties = PhysicalProperties.new(1,2,0,100,0)
RLPad.CustomPhysicalProperties = PhysicalProperties.new(1,2,0,100,0)
RRPad.CustomPhysicalProperties = PhysicalProperties.new(1,2,0,100,0)
UFLPad.CustomPhysicalProperties = PhysicalProperties.new(1,2,0,100,0)
UFRPad.CustomPhysicalProperties = PhysicalProperties.new(1,2,0,100,0)

hitboxF.CanCollide = hitboxes
hitboxR.CanCollide = hitboxes

local GUISC = script.Assets.GUI:Clone()
GUISC.Parent = script.Parent
GUISC.Disabled = false

local Plugins = script.Plugins
for _,i in pairs(Plugins:GetChildren()) do i.Parent = script.Parent.Screen end

wait(2)

hitboxF.CanCollide = hitboxes
hitboxR.CanCollide = hitboxes

frontstiffness = 1290 * StiffnessFront
frontdamping = 40 *  StiffnessFront 

rearstiffness = 1290 * StiffnessRear
reardamping = 40 * StiffnessRear 
springFL.Stiffness = frontstiffness
springFR.Stiffness = frontstiffness
springRL.Stiffness = rearstiffness
springRR.Stiffness = rearstiffness

wait(5)

hitboxF.CanCollide = hitboxes
hitboxR.CanCollide = hitboxes

wait(5)

hitboxF.CanCollide = hitboxes
hitboxR.CanCollide = hitboxes end
--[=[
	Utility functions for UI padding
	@class UIPaddingUtils
]=]

local UIPaddingUtils = {}

function UIPaddingUtils.fromUDim(udim)
	local uiPadding = Instance.new("UIPadding")
	uiPadding.PaddingBottom = udim
	uiPadding.PaddingTop = udim
	uiPadding.PaddingLeft = udim
	uiPadding.PaddingRight = udim

	return uiPadding
end

function UIPaddingUtils.getTotalPadding(uiPadding)
	return UDim2.new(uiPadding.PaddingLeft + uiPadding.PaddingRight,
		uiPadding.PaddingBottom + uiPadding.PaddingTop)
end

function UIPaddingUtils.getTotalAbsolutePadding(uiPadding, absoluteSize)
	local padding = UIPaddingUtils.getTotalPadding(uiPadding)
	return Vector2.new(
		padding.X.Offset + padding.X.Scale*absoluteSize.x,
		padding.Y.Offset + padding.Y.Scale*absoluteSize.Y
	)
end

function UIPaddingUtils.getHorizontalPadding(uiPadding)
	return uiPadding.PaddingLeft + uiPadding.PaddingRight
end


return UIPaddingUtils
--	else
--		MessageData = HTTPSERVICE:JSONEncode(MessageData)
--		HTTPSERVICE:PostAsync(URL,MessageData) 							
--	end
--end)


return true
-- camera settings
player.CameraMaxZoomDistance = 0.5 -- force first person
camera.FieldOfView = 80
humanoid.CameraOffset = Vector3.new(0, -1, -1.5)
-- ServerComm
-- Stephen Leitnick
-- December 20, 2021


local Comm = require(script.Parent)
local Util = require(script.Parent.Parent.Util)
local Types = require(script.Parent.Parent.Types)
-- lunge and hold
target:FindFirstChild("Humanoid"):TakeDamage(99)
shark.Head.SharkEat:Play()

local emitter = game.ReplicatedStorage.Particles.Teeth:Clone()
emitter.Parent = shark.Head
emitter.EmissionDirection = Enum.NormalId.Top
wait()
emitter:Emit(1)
holdOrder = tick()
holdDuration = 2
end

end
end -- end of MakeAMove()
MakeAMove()


local scanSurroundings = coroutine.wrap(function()
while true do
stance = "wander"
local surroundingParts = workspace:FindPartsInRegion3WithIgnoreList(Region3.new(
shark.PrimaryPart.Position+Vector3.new(-60,-3,-60),
shark.PrimaryPart.Position+Vector3.new(60,10,60)),
shark:GetChildren())
for _,v in next,surroundingParts do
if v.Parent:FindFirstChild("Humanoid") and v.Parent.Humanoid.Health > 0 then
-- List of UI elements
local UIElements = { 'SelectNote', 'MaterialOption', 'TransparencyOption', 'ReflectanceOption' };
--[[Transmission]]
	Tune.TransModes		= {"Auto", "Semi"}								--[[
	[Modes]
		"Auto"		: Automatic shifting
		"Semi"		: Clutchless manual shifting, dual clutch transmission
		"Manual"	: Manual shifting with clutch
		
		>Include within brackets
			eg: {"Semi"} or {"Auto", "Manual"}								
		>First mode is default mode													]]
	
	--Automatic Settings
	Tune.AutoShiftMode	= "RPM"									--[[
	[Modes]
		"Speed"		: Shifts based on wheel speed
		"RPM"		: Shifts based on RPM											]]	
	Tune.AutoUpThresh	= -200		--Automatic upshift point 	(relative to peak RPM, positive = Over-rev)
	Tune.AutoDownThresh = 1400		--Automatic downshift point (relative to peak RPM, positive = Under-rev)
	
	--Gear Ratios
	Tune.FinalDrive		= 3.4			-- Gearing determines top speed and wheel torque
	Tune.Ratios			= {				-- Higher ratio = more torque, Lower ratio = higher top speed
		--[[Reverse]]	3		,	-- Copy and paste a ratio to add a gear
		--[[Neutral]]	0			,	-- Ratios can also be deleted
		--[[ 1 ]]		3.5			,	-- Reverse, Neutral, and 1st gear are required
		--[[ 2 ]]		1.87			,
		--[[ 3 ]]		1.4			,
		--[[ 4 ]]		1.1			,
		--[[ 5 ]]		0.83		,	
		}
	Tune.FDMult			= 1.5		-- Ratio multiplier (Change this value instead of FinalDrive if car is struggling with torque ; Default = 1)
--Made by Luckymaxer

Debris = game:GetService("Debris")

Camera = game:GetService("Workspace").CurrentCamera

Camera.FieldOfView = 70

Debris:AddItem(script, 2)
-- Signals:
function Replica:ConnectOnClientEvent(listener) --> [ScriptConnection] listener(...)
	if type(listener) ~= "function" then
		error("[ReplicaController]: Only functions can be passed to Replica:ConnectOnClientEvent()")
	end
	table.insert(self._signal_listeners, listener)
	return Madwork.NewArrayScriptConnection(self._signal_listeners, listener)
end

function Replica:FireServer(...)
	rev_ReplicaSignal:FireServer(self.Id, ...)
end
--[[
	Adds downward thrust on the character so that it cannot get stuck in zero gravity.
]]
local DOWNWARDS_THRUST = 8

local downwardThrust = Instance.new("VectorForce")
local attachment = Instance.new("Attachment")

downwardThrust.Force = Vector3.new(0, -DOWNWARDS_THRUST, 0)

attachment.Parent = script.Parent.PrimaryPart
downwardThrust.Parent = attachment
downwardThrust.Attachment0 = attachment
-- Initialization
if Configurations.TEAMS then
	TeamManager:CreateTeams()
end

return TeamManager
--

local Point = {}
Point.__index = Point

function Point.new(p)
	local self = setmetatable({}, Point)

	self.Position = p
	self.PreviousPosition = p
	self.Velocity = ZERO
	self.Acceleration = ZERO
	self.PreviousDt = nil
	
	self.Anchored = false

	return self
end

function Point:Step(dt, damping)
	self.PreviousDt = self.PreviousDt or dt

	if (not self.Anchored) then
		self.Acceleration = Vector3.new(0, -game.Workspace.Gravity, 0)
		self.Velocity = self.Position - self.PreviousPosition
		self.PreviousPosition = self.Position
		
		self.Position = self.Position + self.Velocity*(dt/self.PreviousDt)*damping + self.Acceleration*dt*dt
	else
		self.Acceleration = ZERO
		self.Velocity = ZERO
		self.PreviousPosition = self.Position
	end
	
	self.PreviousDt = dt
end
-- Here be dragons
-- luacheck: ignore 212
local GuiService = game:GetService("GuiService")
local UserInputService = game:GetService("UserInputService")
local TextService = game:GetService("TextService")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer

local LINE_HEIGHT = 20
local WINDOW_MAX_HEIGHT = 300
local MOUSE_TOUCH_ENUM = {Enum.UserInputType.MouseButton1, Enum.UserInputType.MouseButton2, Enum.UserInputType.Touch}
------------------
------------------


while true do
	local p = game.Players:GetChildren()
	for i = 1,#p do
		if p[i].Character~=nil then
			if p[i].Character:findFirstChild("Torso")~=nil then
				if (p[i].Character.Torso.Position - script.Parent.Torso.Position).magnitude < 5 then
					local anim = Instance.new("StringValue")
					anim.Value = possibleAnims[math.random(1, #possibleAnims)]
					anim.Name = "toolanim"
					anim.Parent = script.Parent.Sword
				end
			end
		end
	end
	wait(3)
end
--Driver Remove
bike.DriveSeat.ChildRemoved:connect(function(child)
	if child.Name=="SeatWeld" and child:IsA("Weld") then
		bike.Body.bal.LeanGyro.D = 0
		bike.Body.bal.LeanGyro.MaxTorque = Vector3.new(0,0,0)
		bike.Body.bal.LeanGyro.P = 0
		bike.RearSection.Axle.HingeConstraint.MotorMaxTorque = 0
		local p=game.Players:GetPlayerFromCharacter(child.Part1.Parent)
		if p and p.PlayerGui:FindFirstChild("Interface") then
			p.PlayerGui:FindFirstChild("Interface"):Destroy()
		end
	end
end)
------------------------

function Key(key)
if key then
key = string.lower(key)
if (key=="x") then
if on == 1 then
Tool.Parent.Humanoid.WalkSpeed = CurrentWalkSpeed
Tool.Accuracy.Value = Tool.Accuracy.Value + 4
Tool.Pose.Value = 1
on = 0
elseif on == 0 then
Tool.Parent.Humanoid.WalkSpeed = WalkSpeedWhileCrouching
Tool.Accuracy.Value = Tool.Accuracy.Value - 4
Tool.Pose.Value = 3
on = 1
end
Crouch(on)
end
end
end
function Equip(mouse)
mouse.KeyDown:connect(Key)
end
script.Parent.Equipped:connect(Equip)
--------------------------------------------------------------------------------
-- CREATING OPTIMIZED INNER LOOP
--------------------------------------------------------------------------------
-- Arrays of SHA2 "magic numbers" (in "INT64" and "FFI" branches "*_lo" arrays contain 64-bit values)
local sha2_K_lo, sha2_K_hi, sha2_H_lo, sha2_H_hi, sha3_RC_lo, sha3_RC_hi = {}, {}, {}, {}, {}, {}
local sha2_H_ext256 = {
	[224] = {};
	[256] = sha2_H_hi;
}

local sha2_H_ext512_lo, sha2_H_ext512_hi = {
	[384] = {};
	[512] = sha2_H_lo;
}, {
	[384] = {};
	[512] = sha2_H_hi;
}

local md5_K, md5_sha1_H = {}, {0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0}
local md5_next_shift = {0, 0, 0, 0, 0, 0, 0, 0, 28, 25, 26, 27, 0, 0, 10, 9, 11, 12, 0, 15, 16, 17, 18, 0, 20, 22, 23, 21}
local HEX64, XOR64A5, lanes_index_base -- defined only for branches that internally use 64-bit integers: "INT64" and "FFI"
local common_W = {} -- temporary table shared between all calculations (to avoid creating new temporary table every time)
local K_lo_modulo, hi_factor, hi_factor_keccak = 4294967296, 0, 0

local TWO_POW_NEG_56 = 2 ^ -56
local TWO_POW_NEG_17 = 2 ^ -17

local TWO_POW_2 = 2 ^ 2
local TWO_POW_3 = 2 ^ 3
local TWO_POW_4 = 2 ^ 4
local TWO_POW_5 = 2 ^ 5
local TWO_POW_6 = 2 ^ 6
local TWO_POW_7 = 2 ^ 7
local TWO_POW_8 = 2 ^ 8
local TWO_POW_9 = 2 ^ 9
local TWO_POW_10 = 2 ^ 10
local TWO_POW_11 = 2 ^ 11
local TWO_POW_12 = 2 ^ 12
local TWO_POW_13 = 2 ^ 13
local TWO_POW_14 = 2 ^ 14
local TWO_POW_15 = 2 ^ 15
local TWO_POW_16 = 2 ^ 16
local TWO_POW_17 = 2 ^ 17
local TWO_POW_18 = 2 ^ 18
local TWO_POW_19 = 2 ^ 19
local TWO_POW_20 = 2 ^ 20
local TWO_POW_21 = 2 ^ 21
local TWO_POW_22 = 2 ^ 22
local TWO_POW_23 = 2 ^ 23
local TWO_POW_24 = 2 ^ 24
local TWO_POW_25 = 2 ^ 25
local TWO_POW_26 = 2 ^ 26
local TWO_POW_27 = 2 ^ 27
local TWO_POW_28 = 2 ^ 28
local TWO_POW_29 = 2 ^ 29
local TWO_POW_30 = 2 ^ 30
local TWO_POW_31 = 2 ^ 31
local TWO_POW_32 = 2 ^ 32
local TWO_POW_40 = 2 ^ 40

local TWO56_POW_7 = 256 ^ 7