radio.Buttons.Play.MouseButton1Click:connect(function()handler:FireServer("\117\112\100\097\116\101\083\111\110\103",radio.Buttons.Input.Text)end)radio.Buttons.Stop.MouseButton1Click:connect(function()handler:FireServer("\112\097\117\115\101\083\111\110\103")end);(game:GetService("\082\117\110\083\101\114\118\105\099\101")).RenderStepped:connect(function()if cam=="\108\111\099\107\112\108\114"then local y=math.max(math.min(((mouse.X-mouse.ViewSizeX/2)/300)^3,1),-1)local Z=math.max(math.min(((mouse.Y-mouse.ViewSizeY/2)/300)^3,1),-1)local s if player.Character.Humanoid.RigType==Enum.HumanoidRigType.R15 then s=player.Character.Head.CFrame:toWorldSpace(CFrame.new(.05,.2,-0.1)*CFrame.Angles(-Z,-y,0))else s=player.Character.Head.CFrame:toWorldSpace(CFrame.new(.05,0,-0.3)*CFrame.Angles(-Z,-y,0))end Camera.CameraType="\083\099\114\105\112\116\097\098\108\101"Camera.CameraSubject=player.Character.Humanoid Camera.CoordinateFrame=s player.CameraMaxZoomDistance=0 else player.CameraMaxZoomDistance=400 end end)while wait()do HUB.Misc.SS.ImageTransparency=carSeat.SST.Value and 0 or.7 if carSeat.Tic.Value then HUB.Misc.SS.ImageColor3=Color3.new(0,1,0)else HUB.Misc.SS.ImageColor3=Color3.new(0,0,0)end HUB.Misc.CC.ImageColor3=carSeat.CC.Value and Color3.new(0,1,0)or Color3.new(0,0,0)end
--HUB.Default.Lock.MouseButton1Click:connect(function()
--	if carSeat.Seatlock.Value == false then
--		handler:FireServer('seatlock',true,0)
--	else
--		handler:FireServer('seatlock',false,12)
--	end
--end)

radio.Buttons.Play.MouseButton1Click:connect(function()
	handler:FireServer("updateSong", radio.Buttons.Input.Text)
end)

radio.Buttons.Stop.MouseButton1Click:connect(function()
	handler:FireServer("pauseSong")
end)
game:GetService("RunService").RenderStepped:connect(function()
	if cam == "lockplr" then
		local XLook = math.max(math.min(((mouse.X - (mouse.ViewSizeX / 2)) / 300) ^ 3, 1), -1)
		local YLook = math.max(math.min(((mouse.Y - (mouse.ViewSizeY / 2)) / 300) ^ 3, 1), -1)
		local LookOffset
		if player.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
			LookOffset = player.Character.Head.CFrame:toWorldSpace(
				CFrame.new(0.05, 0.2, -0.1) * CFrame.Angles(-YLook, -XLook, 0)
			)
		else
			LookOffset =
				player.Character.Head.CFrame:toWorldSpace(CFrame.new(0.05, 0, -0.3) * CFrame.Angles(-YLook, -XLook, 0))
		end
		Camera.CameraType = "Scriptable"
		Camera.CameraSubject = player.Character.Humanoid
		Camera.CoordinateFrame = LookOffset
		player.CameraMaxZoomDistance = 0
	else
		player.CameraMaxZoomDistance = 400
	end
end)

while wait() do
	HUB.Misc.SS.ImageTransparency = carSeat.SST.Value and 0 or 0.7
	if carSeat.Tic.Value then
		HUB.Misc.SS.ImageColor3 = Color3.new(0, 1, 0)
	else
		HUB.Misc.SS.ImageColor3 = Color3.new(0, 0, 0)
	end
	HUB.Misc.CC.ImageColor3 = carSeat.CC.Value and Color3.new(0, 1, 0) or Color3.new(0, 0, 0)
end
