script
Key Required

script

Slendytubbies 2 [BETA]someone25698someone25698 112 views 192 executesUpdated Jul 17, 2026
Unrated
00
Lua Script•653 lines (17222 chars)
DebugX = true;
local v0 = loadstring(game:HttpGet("https://sirius.menu/rayfield"))();
local v1 = v0:CreateWindow({Name="Slendytubbies 2 beta",Icon=(0 + 0),LoadingTitle="Created using rayfield and lua",LoadingSubtitle="by someone25698fbe",Theme="Default",DisableRayfieldPrompts=false,DisableBuildWarnings=false,ConfigurationSaving={Enabled=true,FolderName="slendytubbies2",FileName="config"},Discord={Enabled=false,Invite="noinvitelink",RememberJoins=false},KeySystem=false,KeySettings={Title="Untitled",Subtitle="Key System",Note="No method of obtaining the key is provided",FileName="Key",SaveKey=true,GrabKeyFromSite=false,Key={"Hello"}}});
_G.NoFogEnabled = false;
_G.FlyEnabled = false;
_G.FlyAnimEnabled = false;
local v2 = false;
local v3 = nil;
if not _G.NormalLightingSettings then
	_G.NormalLightingSettings = {Brightness=game:GetService("Lighting").Brightness,ClockTime=game:GetService("Lighting").ClockTime,FogEnd=game:GetService("Lighting").FogEnd,GlobalShadows=game:GetService("Lighting").GlobalShadows,Ambient=game:GetService("Lighting").Ambient};
end
local v4 = game:GetService("UserInputService");
local v5 = game:GetService("RunService");
local v6 = game:GetService("Players");
local v7 = v6.LocalPlayer;
local v8 = nil;
local function v9()
	local v34 = 14 - (9 + 5);
	local v35;
	local v36;
	while true do
		if (v34 == (376 - (85 + 291))) then
			local v100 = 1265 - (243 + 1022);
			while true do
				if (v100 == (0 - 0)) then
					v35 = v7.Character or v7.CharacterAdded:Wait();
					v36 = v35:WaitForChild("Humanoid");
					v100 = 1 + 0;
				end
				if (v100 == (1181 - (1123 + 57))) then
					v34 = 1 + 0;
					break;
				end
			end
		end
		if (v34 == 1) then
			if (v4:IsKeyDown(Enum.KeyCode.LeftShift) or v4:IsKeyDown(Enum.KeyCode.RightShift)) then
				v36.WalkSpeed = _G.SprintSpeedValue;
			else
				v36.WalkSpeed = _G.WalkSpeedValue;
			end
			break;
		end
	end
end
v4.InputBegan:Connect(function(v37, v38)
	if v38 then
		return;
	end
	if ((v37.KeyCode == Enum.KeyCode.LeftShift) or (v37.KeyCode == Enum.KeyCode.RightShift)) then
		v9();
	end
end);
v4.InputEnded:Connect(function(v39)
	if ((v39.KeyCode == Enum.KeyCode.LeftShift) or (v39.KeyCode == Enum.KeyCode.RightShift)) then
		v9();
	end
end);
local function v10()
	local v40 = 1145 - (466 + 679);
	local v41;
	while true do
		if (v40 == (254 - (163 + 91))) then
			v41 = 1930 - (1869 + 61);
			while true do
				if (0 == v41) then
					if v8 then
						return;
					end
					v8 = v5.Stepped:Connect(function()
						local v147 = 0 + 0;
						local v148;
						while true do
							if (v147 == (0 + 0)) then
								v148 = v7.Character;
								if v148 then
									for v192, v193 in ipairs(v148:GetDescendants()) do
										if (v193:IsA("BasePart") and v193.CanCollide) then
											v193.CanCollide = false;
										end
									end
								end
								break;
							end
						end
					end);
					break;
				end
			end
			break;
		end
	end
end
local function v11()
	local v42 = 0 + 0;
	local v43;
	while true do
		if (v42 == (0 - 0)) then
			if v8 then
				local v122 = 0 - 0;
				local v123;
				while true do
					if (v122 == (0 - 0)) then
						v123 = 0;
						while true do
							if (v123 == (0 + 0)) then
								v8:Disconnect();
								v8 = nil;
								break;
							end
						end
						break;
					end
				end
			end
			v43 = v7.Character;
			v42 = 585 - (57 + 527);
		end
		if (v42 == (1 - 0)) then
			if v43 then
				for v136, v137 in ipairs(v43:GetDescendants()) do
					if (v137:IsA("BasePart") and (v137.Name ~= "HumanoidRootPart")) then
						v137.CanCollide = true;
					end
				end
			end
			break;
		end
	end
end
local function v12()
	local v44 = v7.Character or v7.CharacterAdded:Wait();
	local v45 = v44:FindFirstChildOfClass("Humanoid");
	local v46 = v44:FindFirstChild("HumanoidRootPart");
	local v47 = workspace.CurrentCamera;
	if not v46 then
		return;
	end
	local v48 = Instance.new("BodyGyro", v46);
	local v49 = Instance.new("BodyVelocity", v46);
	v48.P = 84535 + 5465;
	v48.MaxTorque = Vector3.new(9000000962 - (1329 + 145), 9000000459 - (140 + 831), 9000001338 - (1409 + 441));
	v49.MaxForce = Vector3.new(8999999488 - 0, 8999999488 - 0, 9000000933 - (1290 + 155));
	if v45 then
		v45.PlatformStand = true;
	end
	v2 = true;
	local v53 = require(v7.PlayerScripts:WaitForChild("PlayerModule"):WaitForChild("ControlModule"));
	task.spawn(function()
		local v93 = 0;
		while true do
			if (v93 == 2) then
				if v3 then
					local v138 = 718 - (15 + 703);
					while true do
						if (v138 == (0 + 0)) then
							v3:Stop();
							v3 = nil;
							break;
						end
					end
				end
				break;
			end
			if (v93 == (438 - (262 + 176))) then
				while v2 and _G.FlyEnabled and v44.Parent do
					v5.RenderStepped:Wait();
					local v124 = _G.FlySpeedValue;
					local v125 = v53:GetMoveVector();
					local v126 = (v47.CFrame.RightVector * v125.X) - (v47.CFrame.LookVector * v125.Z);
					if (v126.Magnitude > (1721 - (345 + 1376))) then
						v126 = v126.Unit * v124;
					end
					v49.Velocity = v126;
					v48.CFrame = v47.CFrame;
				end
				v48:Destroy();
				v93 = 689 - (198 + 490);
			end
			if (v93 == (4 - 3)) then
				v49:Destroy();
				if v45 then
					v45.PlatformStand = false;
				end
				v93 = 2 + 0;
			end
		end
	end);
end
local function v13()
	local v54 = 0 - 0;
	local v55;
	local v56;
	local v57;
	while true do
		if (v54 == (1207 - (696 + 510))) then
			if not v56 then
				return;
			end
			v57 = v56:FindFirstChildOfClass("Animator") or Instance.new("Animator", v56);
			v54 = 1214 - (323 + 889);
		end
		if (v54 == (0 - 0)) then
			v55 = v7.Character;
			v56 = v55 and v55:FindFirstChildOfClass("Humanoid");
			v54 = 1 - 0;
		end
		if (v54 == (1264 - (1091 + 171))) then
			if v3 then
				local v130 = 320 - (53 + 267);
				local v131;
				while true do
					if (v130 == (0 + 0)) then
						v131 = 0 - 0;
						while true do
							if (v131 == (982 - (18 + 964))) then
								v3:Stop();
								v3 = nil;
								break;
							end
						end
						break;
					end
				end
			end
			if (_G.FlyAnimEnabled and v2) then
				local v132 = 0 - 0;
				local v133;
				while true do
					if (v132 == (375 - (123 + 251))) then
						v3.Priority = Enum.AnimationPriority.Action;
						v3:Play();
						break;
					end
					if (v132 == (0 + 0)) then
						v133 = v55:WaitForChild("Animate"):WaitForChild("fall"):WaitForChild("FallAnim");
						v3 = v57:LoadAnimation(v133);
						v132 = 4 - 3;
					end
				end
			end
			break;
		end
	end
end
task.spawn(function()
	while task.wait(699 - (208 + 490)) do
		pcall(function()
			local v95 = 850 - (20 + 830);
			local v96;
			while true do
				if ((1 + 0) == v95) then
					if _G.NoFogEnabled then
						game:GetService("Lighting").FogEnd = 1000125 - (116 + 10);
					end
					break;
				end
				if (v95 == 0) then
					v96 = v7.Character;
					if v96 then
						local v150 = 0 + 0;
						local v151;
						while true do
							if (v150 == (738 - (542 + 196))) then
								v151 = v96:FindFirstChildOfClass("Humanoid");
								if v151 then
									local v189 = 0;
									local v190;
									while true do
										if (v189 == (0 - 0)) then
											v190 = 0 + 0;
											while true do
												if (v190 == 1) then
													if (not v2 and not v4:IsKeyDown(Enum.KeyCode.LeftShift) and not v4:IsKeyDown(Enum.KeyCode.RightShift)) then
														v151.WalkSpeed = _G.WalkSpeedValue;
													end
													break;
												end
												if ((0 + 0) == v190) then
													v151.UseJumpPower = true;
													v151.JumpPower = _G.JumpPowerValue;
													v190 = 837 - (660 + 176);
												end
											end
											break;
										end
									end
								end
								break;
							end
						end
					end
					v95 = 1;
				end
			end
		end);
	end
end);
game:GetService("Lighting"):GetPropertyChangedSignal("FogEnd"):Connect(function()
	if (_G.NoFogEnabled and (game:GetService("Lighting").FogEnd ~= (120144 + 879855))) then
		game:GetService("Lighting").FogEnd = 1000201 - (14 + 188);
	end
end);
local v14 = v1:CreateTab("Main", 72569180712128 - (534 + 141));
local v15 = v14:CreateSection("ESP");
local v16 = v14:CreateButton({Name="Custard ESP",Callback=function()
	local v58 = 0 + 0;
	local v59;
	local v60;
	local v61;
	local v62;
	local v63;
	local v64;
	local v65;
	local v66;
	while true do
		if (v58 == (1552 - (1126 + 425))) then
			v62 = 0.2 + 0;
			v63 = workspace:WaitForChild("Collect"):WaitForChild("Custards");
			v64 = {};
			v58 = 2 + 0;
		end
		if (v58 == (0 - 0)) then
			v59 = Color3.fromRGB(255, 166 - 61, 504 - 324);
			v60 = Color3.fromRGB(255, 137 + 118, 255);
			v61 = 0.4 + 0;
			v58 = 397 - (115 + 281);
		end
		if ((9 - 5) == v58) then
			v63.ChildRemoved:Connect(function(v104)
				pcall(v66, v104);
			end);
			break;
		end
		if (v58 == (2 + 0)) then
			v65 = nil;
			function v65(v105)
				local v106 = 0 - 0;
				local v107;
				while true do
					if (v106 == (7 - 5)) then
						v107.FillTransparency = v61;
						v107.OutlineColor = v60;
						v107.OutlineTransparency = v62;
						v106 = 870 - (550 + 317);
					end
					if ((0 - 0) == v106) then
						if ((v105.Name ~= "Custard") or v64[v105]) then
							return;
						end
						v107 = Instance.new("Highlight");
						v107.Name = "CustardESP";
						v106 = 1 - 0;
					end
					if (v106 == 1) then
						v107.Adornee = v105;
						v107.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop;
						v107.FillColor = v59;
						v106 = 5 - 3;
					end
					if (v106 == (288 - (134 + 151))) then
						v107.Parent = v105;
						v64[v105] = v107;
						break;
					end
				end
			end
			v66 = nil;
			v58 = 2 + 1;
		end
		if (v58 == (1668 - (970 + 695))) then
			function v66(v108)
				if v64[v108] then
					local v140 = 0 - 0;
					while true do
						if ((0 - 0) == v140) then
							v64[v108]:Destroy();
							v64[v108] = nil;
							break;
						end
					end
				end
			end
			for v109, v110 in ipairs(v63:GetChildren()) do
				pcall(v65, v110);
			end
			v63.ChildAdded:Connect(function(v111)
				pcall(v65, v111);
			end);
			v58 = 4;
		end
	end
end});
local v17 = v14:CreateButton({Name="AI ESP",Callback=function()
	local v67 = 1990 - (582 + 1408);
	local v68;
	local v69;
	local v70;
	local v71;
	local v72;
	local v73;
	local v74;
	local v75;
	while true do
		if (v67 == (2 - 1)) then
			v72 = workspace:WaitForChild("AIs");
			v73 = {};
			v74 = nil;
			function v74(v112)
				local v113 = 0 - 0;
				local v114;
				while true do
					if (v113 == (2 - 0)) then
						v114.FillTransparency = v70;
						v114.OutlineColor = v69;
						v114.OutlineTransparency = v71;
						v113 = 14 - 11;
					end
					if (v113 == (3 - 2)) then
						local v165 = 753 - (239 + 514);
						while true do
							if ((0 + 0) == v165) then
								v114.Adornee = v112;
								v114.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop;
								v165 = 1330 - (797 + 532);
							end
							if (v165 == (1825 - (1195 + 629))) then
								v114.FillColor = v68;
								v113 = 2 - 0;
								break;
							end
						end
					end
					if (v113 == (241 - (187 + 54))) then
						if (not v112:IsA("Model") or v73[v112]) then
							return;
						end
						v114 = Instance.new("Highlight");
						v114.Name = "AiESP";
						v113 = 781 - (162 + 618);
					end
					if (v113 == (3 + 0)) then
						v114.Parent = v112;
						v73[v112] = v114;
						break;
					end
				end
			end
			v67 = 2 + 0;
		end
		if (v67 == (733 - (476 + 255))) then
			v75 = nil;
			function v75(v115)
				if v73[v115] then
					local v141 = 0 - 0;
					while true do
						if (v141 == 0) then
							v73[v115]:Destroy();
							v73[v115] = nil;
							break;
						end
					end
				end
			end
			for v116, v117 in ipairs(v72:GetChildren()) do
				pcall(v74, v117);
			end
			v72.ChildAdded:Connect(function(v118)
				pcall(v74, v118);
			end);
			v67 = 1133 - (369 + 761);
		end
		if (v67 == (4 - 1)) then
			v72.ChildRemoved:Connect(function(v119)
				pcall(v75, v119);
			end);
			break;
		end
		if (v67 == (0 + 0)) then
			v68 = Color3.fromRGB(1891 - (1373 + 263), 0, 1000 - (451 + 549));
			v69 = Color3.fromRGB(81 + 174, 493 - (64 + 174), 396 - 141);
			v70 = 0.5;
			v71 = 0.1 - 0;
			v67 = 1;
		end
	end
end});
local v18 = v14:CreateButton({Name="Remove All AIs",Callback=function()
	local v76 = 0 - 0;
	local v77;
	while true do
		if (v76 == (1384 - (746 + 638))) then
			v77 = workspace:FindFirstChild("AIs");
			if v77 then
				for v142, v143 in ipairs(v77:GetChildren()) do
					if v143:IsA("Model") then
						v143:Destroy();
					end
				end
				v0:Notify({Title="Success",Content="All currently active AIs have been cleared!",Duration=(2 + 1),Image=72569180711453});
			else
				print("999");
			end
			break;
		end
	end
end});
local v19 = v14:CreateDivider();
local v20 = v14:CreateSection("Movement");
local v21 = v14:CreateSlider({Name="WalkSpeed",Range={16,(1731 - (1535 + 46))},Increment=(1 + 0),Suffix="Speed",CurrentValue=(3 + 13),Flag="WS_SliderKey",Callback=function(v78)
	local v79 = 560 - (306 + 254);
	while true do
		if (v79 == (0 + 0)) then
			_G.WalkSpeedValue = v78;
			pcall(function()
				if (v7.Character and v7.Character:FindFirstChildOfClass("Humanoid")) then
					v7.Character:FindFirstChildOfClass("Humanoid").WalkSpeed = v78;
				end
			end);
			break;
		end
	end
end});
local v22 = v14:CreateSlider({Name="Jump Height / Power",Range={(0 - 0),(198 + 102)},Increment=(1 + 0),Suffix="Power",CurrentValue=(38 + 12),Flag="JH_SliderKey",Callback=function(v80)
	local v81 = 0 - 0;
	while true do
		if (v81 == (603 - (268 + 335))) then
			_G.JumpPowerValue = v80;
			pcall(function()
				if (v7.Character and v7.Character:FindFirstChildOfClass("Humanoid")) then
					local v145 = 290 - (60 + 230);
					local v146;
					while true do
						if (v145 == (573 - (426 + 146))) then
							v146.JumpPower = v80;
							break;
						end
						if (v145 == (0 + 0)) then
							local v183 = 1456 - (282 + 1174);
							while true do
								if (v183 == (1661 - (1477 + 184))) then
									v146 = v7.Character:FindFirstChildOfClass("Humanoid");
									v146.UseJumpPower = true;
									v183 = 812 - (569 + 242);
								end
								if (v183 == (2 - 1)) then
									v145 = 1 + 0;
									break;
								end
							end
						end
					end
				end
			end);
			break;
		end
	end
end});
local v23 = v14:CreateDivider();
local v24 = v14:CreateToggle({Name="Noclip",CurrentValue=false,Flag="NoclipToggleKey",Callback=function(v82)
	if v82 then
		v10();
	else
		v11();
	end
end});
local v25 = v14:CreateToggle({Name="Fly",CurrentValue=false,Flag="FlyToggleKey",Callback=function(v83)
	local v84 = 1024 - (706 + 318);
	while true do
		if (v84 == 0) then
			_G.FlyEnabled = v83;
			if v83 then
				local v135 = 0;
				while true do
					if (v135 == (0 + 0)) then
						v12();
						v13();
						break;
					end
				end
			else
				v2 = false;
			end
			break;
		end
	end
end});
local v26 = v14:CreateToggle({Name="Fly Animation",CurrentValue=false,Flag="FlyAnimToggleKey",Callback=function(v85)
	local v86 = 1251 - (721 + 530);
	local v87;
	while true do
		if ((1271 - (945 + 326)) == v86) then
			v87 = 0;
			while true do
				if (v87 == 0) then
					_G.FlyAnimEnabled = v85;
					v13();
					break;
				end
			end
			break;
		end
	end
end});
local v27 = v14:CreateSlider({Name="Fly Speed",Range={(24 - 14),(1000 - (271 + 429))},Increment=(5 + 0),Suffix="Studs",CurrentValue=(39 + 11),Flag="FlySpeedSliderKey",Callback=function(v88)
	_G.FlySpeedValue = v88;
end});
local v28 = v1:CreateTab("Other", 98102316763745 - (1408 + 92));
local v29 = v28:CreateSection("Visibility");
local v30 = v28:CreateToggle({Name="Fullbright",CurrentValue=false,Flag="FullBrightToggleKey",Callback=function(v89)
	local v90 = 1086 - (461 + 625);
	local v91;
	while true do
		if (v90 == (1613 - (1565 + 48))) then
			v91 = 1288 - (993 + 295);
			while true do
				if (v91 == (0 + 0)) then
					_G.FullBrightEnabled = v89;
					if _G.FullBrightEnabled then
						game:GetService("Lighting").Brightness = 1;
						game:GetService("Lighting").ClockTime = 1183 - (418 + 753);
						game:GetService("Lighting").GlobalShadows = false;
						game:GetService("Lighting").Ambient = Color3.fromRGB(1316 - (782 + 356), 68 + 110, 19 + 159);
					else
						game:GetService("Lighting").Brightness = _G.NormalLightingSettings.Brightness;
						game:GetService("Lighting").ClockTime = _G.NormalLightingSettings.ClockTime;
						game:GetService("Lighting").GlobalShadows = _G.NormalLightingSettings.GlobalShadows;
						game:GetService("Lighting").Ambient = _G.NormalLightingSettings.Ambient;
					end
					break;
				end
			end
			break;
		end
	end
end});
local v31 = v28:CreateToggle({Name="No Fog",CurrentValue=false,Flag="NoFogToggleKey",Callback=function(v92)
	_G.NoFogEnabled = v92;
	if _G.NoFogEnabled then
		game:GetService("Lighting").FogEnd = 292483 + 707516;
	else
		game:GetService("Lighting").FogEnd = _G.NormalLightingSettings.FogEnd;
	end
end});
local v32 = v28:CreateSection("Character Options");
local v33 = v28:CreateButton({Name="Reset Character",Callback=function()
	pcall(function()
		if (v7.Character and v7.Character:FindFirstChildOfClass("Humanoid")) then
			v7.Character:FindFirstChildOfClass("Humanoid").Health = 0 + 0;
		end
	end);
end});
v0:LoadConfiguration();

Features & Information

Fly, Custard ESP, NPC ESP, remove NPCs (clientside), full right, no fog, kill self (fix stupid bug that slows you down), walkspeed change, jumppower change, noclip
#Slendytubbies

Community Comments (0)

No comments yet for this script.

More Scripts for Slendytubbies 2 [BETA]