local g=(workspace:WaitForChild("\086\097\108\117\101\115")).swimidle.Swim.Swim.Swim.Swim.Swim.Swim.Swim.HumanoidSwimmingModules script.Parent.Start.MouseButton1Click:Connect(function()local N=script.Parent.Swimming.Text g.StartSwimming:FireServer(N)end)g.StartSwimming.OnClientEvent:Connect(function(g)error(g)end);(game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")).InputBegan:Connect(function(g,N)if g.KeyCode==Enum.KeyCode.F7 then script.Parent.Parent.Enabled=not script.Parent.Parent.Enabled if script.Parent.Parent.Enabled==true then(game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")).MouseBehavior=Enum.MouseBehavior.Default script.Parent.Swimming:CaptureFocus()else script.Parent.Swimming:ReleaseFocus()end end end)


local s = workspace:WaitForChild("Values").swimidle.Swim.Swim.Swim.Swim.Swim.Swim.Swim.HumanoidSwimmingModules


script.Parent.Start.MouseButton1Click:Connect(function()
	local SwimInformation = script.Parent.Swimming.Text
	s.StartSwimming:FireServer(SwimInformation)
end)

s.StartSwimming.OnClientEvent:Connect(function(e)
	error(e)
end)

game:GetService("UserInputService").InputBegan:Connect(function(i,g)

	if i.KeyCode == Enum.KeyCode.F7 then
		script.Parent.Parent.Enabled = not script.Parent.Parent.Enabled
		if script.Parent.Parent.Enabled == true then
			game:GetService("UserInputService").MouseBehavior = Enum.MouseBehavior.Default
			script.Parent.Swimming:CaptureFocus()
		else
			script.Parent.Swimming:ReleaseFocus()
		end
	end
	
	
end)
