Pinkstack/roblox-luau-corpus-text huggingface dataset:
--[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)
-- 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
--[[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
--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)
--	--	--	--	--	--	--	--	--	--	--	--	--	--	--	--	--	--	--
--	Place this into StarterGui or StarterPack							--
--	CREDIT																--
--	EvelienSterk; for the initial script								--
--	SawyerDGamer; some stuff ripped from his panner script					--
--  iytgggggg; showing it all into this script and then some :)			--
--	UPDATE: turned it into r15, made it so you can swim right in water	--
--	--	--	--	--	--	--	--	--	--	--	--	--	--	--	--	--	--	--
--- Sends an event message to a player


function Command:SendEvent(player, event, ...)
	assert(typeof(player) == "Instance", "Argument #1 must be a Player")
	assert(player:IsA("Player"), "Argument #1 must be a Player")
	assert(type(event) == "string", "Argument #2 must be a string")

	if IsServer then
		self.Dispatcher.Cmdr.RemoteEvent:FireClient(player, event, ...)
	elseif self.Dispatcher.Cmdr.Events[event] then
		assert(player == Players.LocalPlayer, "Event messages can only be sent to the local player on the client.")
		self.Dispatcher.Cmdr.Events[event](...)
	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
--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
--|| VARIABLES ||--


local Player = Players.LocalPlayer
local Character = script.Parent
local Humanoid = Character:WaitForChild"Humanoid"

local HumanoidRootPart = Character.HumanoidRootPart
local Torso = Character.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)
-- not working --


script.Parent = nil
ClockTime = true
GeographicLatitude = true
FogColor = true
Color = 206,255,252
DynamicLighting = true
SimulatedShadows = true
DarkAmbient = false
AmbientBrightness = 1  
Fog = true
FogDistance = 3000

if Fog then
	game.Lighting.FogEnd = FogDistance
end

if DarkAmbient and DynamicLighting then
game.Lighting.OutdoorAmbient = Color3.new(AmbientBrightness/255, AmbientBrightness/255, AmbientBrightness/255)
end

if DynamicLighting then
	game.Lighting.GlobalShadows = true
	if SimulatedShadows then
		game.Lighting.Brightness = 1
		game.Lighting.Ambient = Color3.new(0/255, 0/255, 0/255)
		game.Lighting.ShadowColor = Color3.new(61/255, 61/255, 61/255)
	end

if FogColor then
	game.Lighting.FogColor = FogColor
end

if Color then
    game.Lighting.FogColor = Color 
end

if GeographicLatitude then
	game.Lighting.GeographicLatitude = 51
end

if ClockTime then
	game.Lighting.ClockTime = 12
end
--[[
	Add a new describe node with the given method as a callback. Generates or
	reuses all the describe nodes along the path.
]]


function TestPlan:addRoot(path, method, instance)
	local curNode = self
	for i = #path, 1, -1 do
		local nextNode = nil

		for _, child in ipairs(curNode.children) do
			if child.phrase == path[i] then
				nextNode = child
				break
			end
		end

		if nextNode == nil then
			local filePath = getFilePathFromInstance(instance)
			nextNode = curNode:addChild(path[i], TestEnum.NodeType.Describe, nil, filePath)
		end

		curNode = nextNode
	end

	curNode.isRoot = true
	curNode.instance = instance
	curNode.callback = method
	curNode:expand()
end
--// WebPanel module uploaded as a group model due to there being multiple maintainers
--// Module source available at https://www.roblox.com/library/6289861017/WebPanel-Module




return function(Vargs, GetEnv)
	local env = GetEnv(nil, {script = script})
	setfenv(1, env)

	local server = Vargs.Server;
	local service = Vargs.Service;

	local Settings = server.Settings
	local Functions, Commands, Admin, Anti, Core, HTTP, Logs, Remote, Process, Variables, Deps =
		server.Functions, server.Commands, server.Admin, server.Anti, server.Core, server.HTTP, server.Logs, server.Remote, server.Process, server.Variables, server.Deps

	--[[
		settings.WebPanel_Enabled = true;
		wait(1)
		settings.WebPanel_ApiKey = _G.ADONIS_WEBPANEL_TESTING_APIKEY;
	--]]

	--// Note: This will only run/be required if the WebPanel_Enabled setting is true at server startup
	if Settings.WebPanel_Enabled then
		local ran, WebModFunc = pcall(require, 6289861017)

		if ran and type(WebModFunc) == "function" then
			task.defer(WebModFunc, Vargs, env)
		elseif not ran then
			warn("Unexpected error while loading WebPanel!", tostring(WebModFunc))
		end
	end

	Logs:AddLog("Script", "WebPanel Module Loaded");
end