local n=game:GetService("\080\108\097\121\101\114\115")local I={Climbing={SoundId="\114\098\120\097\115\115\101\116\058\047\047\115\111\117\110\100\115\047\097\099\116\105\111\110\095\102\111\111\116\115\116\101\112\115\095\112\108\097\115\116\105\099\046\109\112\051",Looped=true},Died={SoundId="\114\098\120\097\115\115\101\116\058\047\047\115\111\117\110\100\115\047\117\117\104\104\104\046\109\112\051"},FreeFalling={SoundId="\114\098\120\097\115\115\101\116\058\047\047\115\111\117\110\100\115\047\097\099\116\105\111\110\095\102\097\108\108\105\110\103\046\109\112\051";Looped=true};GettingUp={SoundId="\114\098\120\097\115\115\101\116\058\047\047\115\111\117\110\100\115\047\097\099\116\105\111\110\095\103\101\116\095\117\112\046\109\112\051"},Jumping={SoundId="\114\098\120\097\115\115\101\116\058\047\047\115\111\117\110\100\115\047\097\099\116\105\111\110\095\106\117\109\112\046\109\112\051"};Landing={SoundId="\114\098\120\097\115\115\101\116\058\047\047\115\111\117\110\100\115\047\097\099\116\105\111\110\095\106\117\109\112\095\108\097\110\100\046\109\112\051"};Running={SoundId="\114\098\120\097\115\115\101\116\058\047\047\115\111\117\110\100\115\047\097\099\116\105\111\110\095\102\111\111\116\115\116\101\112\115\095\112\108\097\115\116\105\099\046\109\112\051",Looped=true;Pitch=1.85};Splash={SoundId="\114\098\120\097\115\115\101\116\058\047\047\115\111\117\110\100\115\047\105\109\112\097\099\116\095\119\097\116\101\114\046\109\112\051"};Swimming={SoundId="\114\098\120\097\115\115\101\116\058\047\047\115\111\117\110\100\115\047\097\099\116\105\111\110\095\115\119\105\109\046\109\112\051",Looped=true;Pitch=1.6}}local function X(n)local I={}for n,X in pairs(n)do I[n]=X end return I end local function r(n)n.TimePosition=0 n.Playing=true end local function t(n,I,X,r,t)return((n-I)*(t-r))/(X-I)+r end local u=game:GetService("\082\117\110\083\101\114\118\105\099\101")local function B(...)local n={...}local I=Instance.new("\066\105\110\100\097\098\108\101\069\118\101\110\116")local function X(...)for I=1,#n,1 do n[I]:Disconnect()end return I:Fire(...)end for I=1,#n,1 do n[I]=n[I]:Connect(X)end return I.Event:Wait()end local function m(n,B,m)local W={}for n,I in pairs(I)do local X=Instance.new("\083\111\117\110\100")X.Name=n X.Archivable=false X.EmitterSize=5 X.MaxDistance=150 X.Volume=.65 for n,I in pairs(I)do X[n]=I end X.Parent=m W[n]=X end local H={}local q={}local function c(n)for I,X in pairs(X(H))do if I~=n then I.Playing=false H[I]=nil end end end q[Enum.HumanoidStateType.FallingDown]=function()c()end q[Enum.HumanoidStateType.GettingUp]=function()c()r(W.GettingUp)end q[Enum.HumanoidStateType.Jumping]=function()c()r(W.Jumping)end q[Enum.HumanoidStateType.Swimming]=function()local n=math.abs(m.Velocity.Y)if n>.1 then W.Splash.Volume=math.clamp(t(n,100,350,.28,1),0,1)r(W.Splash)end c(W.Swimming)W.Swimming.Playing=true H[W.Swimming]=true end q[Enum.HumanoidStateType.Freefall]=function()W.FreeFalling.Volume=0 c(W.FreeFalling)H[W.FreeFalling]=true end q[Enum.HumanoidStateType.Landed]=function()c()local n=math.abs(m.Velocity.Y)if n>75 then W.Landing.Volume=math.clamp(t(n,50,100,0,1),0,1)r(W.Landing)end end q[Enum.HumanoidStateType.Running]=function()c(W.Running)W.Running.Playing=true H[W.Running]=true end q[Enum.HumanoidStateType.Climbing]=function()local n=W.Climbing if math.abs(m.Velocity.Y)>.1 then n.Playing=true c(n)else c()end H[n]=true end q[Enum.HumanoidStateType.Seated]=function()c()end q[Enum.HumanoidStateType.Dead]=function()c()r(W.Died)end local P={[W.Climbing]=function(n,I,X)I.Playing=X.Magnitude>.1 end;[W.FreeFalling]=function(n,I,X)if not(X.Magnitude>75)then I.Volume=0 return end I.Volume=math.clamp(I.Volume+.9*n,0,1)end}P[W.Running]=function(n,I,X)local r=false if X.Magnitude>.5 then r=B.MoveDirection.Magnitude>.5 end I.Playing=r end local e={[Enum.HumanoidStateType.RunningNoPhysics]=Enum.HumanoidStateType.Running}local z=e[B:GetState()]or B:GetState()local U=B.StateChanged:Connect(function(n,I)I=e[I]and I if I~=z then local n=q[I]if n then n()end z=I end end)local S=u.Stepped:Connect(function(n,I)for n,X in pairs(H)do local r=P[n]if r then r(I,n,m.Velocity)end end end)local A=nil local V=nil local F=nil local function w()U:Disconnect()S:Disconnect()A:Disconnect()V:Disconnect()F:Disconnect()end A=B.AncestryChanged:Connect(function(n,I)if not I then w()end end)V=m.AncestryChanged:Connect(function(n,I)if not I then w()end end)F=n.CharacterAdded:Connect(w)end local function W(n)local function I(I)if not I.Parent then B(I.AncestryChanged,n.CharacterAdded)end if n.Character~=I or not I.Parent then return end local X=I:FindFirstChildOfClass("\072\117\109\097\110\111\105\100")while I:IsDescendantOf(game)and not X do B(I.ChildAdded,I.AncestryChanged,n.CharacterAdded)X=I:FindFirstChildOfClass("\072\117\109\097\110\111\105\100")end if n.Character~=I or not I:IsDescendantOf(game)then return end local r=I:FindFirstChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")while I:IsDescendantOf(game)and not r do B(I.ChildAdded,I.AncestryChanged,X.AncestryChanged,n.CharacterAdded)r=I:FindFirstChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")end if r and(X:IsDescendantOf(game)and(I:IsDescendantOf(game)and n.Character==I))then m(n,X,r)end end if n.Character then I(n.Character)end n.CharacterAdded:Connect(I)end n.PlayerAdded:Connect(W)for n,I in ipairs(n:GetPlayers())do W(I)end
-- Decompiled with the Synapse X Luau decompiler.

local l__Players__1 = game:GetService("Players")
local u1 = {
	Climbing = {
		SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3",
		Looped = true,
	},
	Died = {
		SoundId = "rbxasset://sounds/uuhhh.mp3",
	},
	FreeFalling = {
		SoundId = "rbxasset://sounds/action_falling.mp3",
		Looped = true,
	},
	GettingUp = {
		SoundId = "rbxasset://sounds/action_get_up.mp3",
	},
	Jumping = {
		SoundId = "rbxasset://sounds/action_jump.mp3",
	},
	Landing = {
		SoundId = "rbxasset://sounds/action_jump_land.mp3",
	},
	Running = {
		SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3",
		Looped = true,
		Pitch = 1.85,
	},
	Splash = {
		SoundId = "rbxasset://sounds/impact_water.mp3",
	},
	Swimming = {
		SoundId = "rbxasset://sounds/action_swim.mp3",
		Looped = true,
		Pitch = 1.6,
	},
}
local function u2(p1)
	local v2 = {}
	for v3, v4 in pairs(p1) do
		v2[v3] = v4
	end
	return v2
end
local function u3(p2)
	p2.TimePosition = 0
	p2.Playing = true
end
local function u4(p3, p4, p5, p6, p7)
	return (p3 - p4) * (p7 - p6) / (p5 - p4) + p6
end
local l__RunService__5 = game:GetService("RunService")
local function u6(...)
	local u7 = { ... }
	local u8 = Instance.new("BindableEvent")
	local function v5(...)
		for v6 = 1, #u7 do
			u7[v6]:Disconnect()
		end
		return u8:Fire(...)
	end
	for v7 = 1, #u7 do
		u7[v7] = u7[v7]:Connect(v5)
	end
	return u8.Event:Wait()
end
local function u9(p8, p9, p10)
	local v8 = {}
	for v9, v10 in pairs(u1) do
		local v11 = Instance.new("Sound")
		v11.Name = v9
		v11.Archivable = false
		v11.EmitterSize = 5
		v11.MaxDistance = 150
		v11.Volume = 0.65
		for v12, v13 in pairs(v10) do
			v11[v12] = v13
		end
		v11.Parent = p10
		v8[v9] = v11
	end
	local u10 = {}
	local v14 = {}
	local function u11(p11)
		for v15, v16 in pairs(u2(u10)) do
			if v15 ~= p11 then
				v15.Playing = false
				u10[v15] = nil
			end
		end
	end
	v14[Enum.HumanoidStateType.FallingDown] = function()
		u11()
	end
	v14[Enum.HumanoidStateType.GettingUp] = function()
		u11()
		u3(v8.GettingUp)
	end
	v14[Enum.HumanoidStateType.Jumping] = function()
		u11()
		u3(v8.Jumping)
	end
	v14[Enum.HumanoidStateType.Swimming] = function()
		local v17 = math.abs(p10.Velocity.Y)
		if v17 > 0.1 then
			v8.Splash.Volume = math.clamp(u4(v17, 100, 350, 0.28, 1), 0, 1)
			u3(v8.Splash)
		end
		u11(v8.Swimming)
		v8.Swimming.Playing = true
		u10[v8.Swimming] = true
	end
	v14[Enum.HumanoidStateType.Freefall] = function()
		v8.FreeFalling.Volume = 0
		u11(v8.FreeFalling)
		u10[v8.FreeFalling] = true
	end
	v14[Enum.HumanoidStateType.Landed] = function()
		u11()
		local v18 = math.abs(p10.Velocity.Y)
		if v18 > 75 then
			v8.Landing.Volume = math.clamp(u4(v18, 50, 100, 0, 1), 0, 1)
			u3(v8.Landing)
		end
	end
	v14[Enum.HumanoidStateType.Running] = function()
		u11(v8.Running)
		v8.Running.Playing = true
		u10[v8.Running] = true
	end
	v14[Enum.HumanoidStateType.Climbing] = function()
		local l__Climbing__19 = v8.Climbing
		if math.abs(p10.Velocity.Y) > 0.1 then
			l__Climbing__19.Playing = true
			u11(l__Climbing__19)
		else
			u11()
		end
		u10[l__Climbing__19] = true
	end
	v14[Enum.HumanoidStateType.Seated] = function()
		u11()
	end
	v14[Enum.HumanoidStateType.Dead] = function()
		u11()
		u3(v8.Died)
	end
	local v20 = {
		[v8.Climbing] = function(p12, p13, p14)
			p13.Playing = p14.Magnitude > 0.1
		end,
		[v8.FreeFalling] = function(p15, p16, p17)
			if not (p17.Magnitude > 75) then
				p16.Volume = 0
				return
			end
			p16.Volume = math.clamp(p16.Volume + 0.9 * p15, 0, 1)
		end,
	}
	v20[v8.Running] = function(p18, p19, p20)
		local v21 = false
		if p20.Magnitude > 0.5 then
			v21 = p9.MoveDirection.Magnitude > 0.5
		end
		p19.Playing = v21
	end
	local v22 = {
		[Enum.HumanoidStateType.RunningNoPhysics] = Enum.HumanoidStateType.Running,
	}
	local u12 = v22[p9:GetState()] or p9:GetState()
	local u13 = p9.StateChanged:Connect(function(p21, p22)
		p22 = v22[p22] and p22
		if p22 ~= u12 then
			local v23 = v14[p22]
			if v23 then
				v23()
			end
			u12 = p22
		end
	end)
	local u14 = l__RunService__5.Stepped:Connect(function(p23, p24)
		for v24, v25 in pairs(u10) do
			local v26 = v20[v24]
			if v26 then
				v26(p24, v24, p10.Velocity)
			end
		end
	end)
	local u15 = nil
	local u16 = nil
	local u17 = nil
	local function u18()
		u13:Disconnect()
		u14:Disconnect()
		u15:Disconnect()
		u16:Disconnect()
		u17:Disconnect()
	end
	u15 = p9.AncestryChanged:Connect(function(p25, p26)
		if not p26 then
			u18()
		end
	end)
	u16 = p10.AncestryChanged:Connect(function(p27, p28)
		if not p28 then
			u18()
		end
	end)
	u17 = p8.CharacterAdded:Connect(u18)
end
local function v27(p29)
	local function v28(p30)
		if not p30.Parent then
			u6(p30.AncestryChanged, p29.CharacterAdded)
		end
		if p29.Character ~= p30 or not p30.Parent then
			return
		end
		local v29 = p30:FindFirstChildOfClass("Humanoid")
		while p30:IsDescendantOf(game) and not v29 do
			u6(p30.ChildAdded, p30.AncestryChanged, p29.CharacterAdded)
			v29 = p30:FindFirstChildOfClass("Humanoid")
		end
		if p29.Character ~= p30 or not p30:IsDescendantOf(game) then
			return
		end
		local v30 = p30:FindFirstChild("HumanoidRootPart")
		while p30:IsDescendantOf(game) and not v30 do
			u6(p30.ChildAdded, p30.AncestryChanged, v29.AncestryChanged, p29.CharacterAdded)
			v30 = p30:FindFirstChild("HumanoidRootPart")
		end
		if v30 and v29:IsDescendantOf(game) and p30:IsDescendantOf(game) and p29.Character == p30 then
			u9(p29, v29, v30)
		end
	end
	if p29.Character then
		v28(p29.Character)
	end
	p29.CharacterAdded:Connect(v28)
end
l__Players__1.PlayerAdded:Connect(v27)
for v31, v32 in ipairs(l__Players__1:GetPlayers()) do
	v27(v32)
end
